diff options
author | Dawid Gajownik <gajownik@gmail.com> | 2015-08-06 21:04:16 -0300 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-08-07 12:28:19 -0700 |
commit | 2f7d33d984a93b46ba87e032c0709eae9d50fe0b (patch) | |
tree | 26c5bc10891f1bb683058466d60c70ffeb18df0e /clients | |
parent | 58106d78bb75201aea8d0226407dc6ddaf304188 (diff) | |
download | weston-2f7d33d984a93b46ba87e032c0709eae9d50fe0b.tar.gz |
compositor: fix crash when destroying incompletely created output
When the output can't be completely created in the backend (for example
lack of memory), weston_compositor_add_output() is never run. In such
a case output->link is not initialized. Letter, when
weston_output_destroy() is called, application crashes on
wl_list_remove(&output->link).
This problem happens when drm, fbdev, rdp, rpi or wayland backend is
used.
v2: Initialize output->link in weston_output_init() as suggested by
Derek Foreman.
Signed-off-by: Dawid Gajownik <gajownik@gmail.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Diffstat (limited to 'clients')
0 files changed, 0 insertions, 0 deletions