libweston: strdup head make, model, serial_number
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 4 Apr 2017 13:26:23 +0000 (16:26 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 12 Apr 2018 11:26:17 +0000 (14:26 +0300)
commit06f99efc9c417eefb8046bf64a84869d698a0be5
tree3bb7a43c5de6c3744c0516bfb39eaa647d5f8e9f
parentd9dcc6dc8f273b56faffed8d786058d622957f0a
libweston: strdup head make, model, serial_number

Duplicate these strings to decouple their lifetime from whatever the
backends used. This should prevent hard to catch use after frees and
such problems in the future.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
v5 Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Ian Ray <ian.ray@ge.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
libweston/compositor.c