weston/compositor
Miguel A. Vico 5c5f0272d9 compositor: Do not trigger invalid destructors when hotunplugging
When hotunplugging a display, the compositor will tear the top-level
wet_output object down, freeing its memory.

However, destruction of the backend output might be delayed in certain
situations (e.g. destroying DRM output while in the middle of a page
flip).

When the backend output is finally destroyed, it will trigger a
destruction callback previously added by the compositor, which point to
data belonging to the top-level wet_output object.

In order to avoid access to invalid data when the backend output is
destroyed after the top-level wet_output object, remove the destruction
callback from the corresponding list before freeing the object.

Signed-off-by: Miguel A Vico Moya <mvicomoya@nvidia.com>
2019-09-25 13:25:39 -07:00
..
cms-colord.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
cms-helper.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
cms-helper.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
cms-static.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
main.c compositor: Do not trigger invalid destructors when hotunplugging 2019-09-25 13:25:39 -07:00
meson.build support byte-by-byte reproducible build 2019-04-09 10:08:23 +00:00
screen-share.c libweston: Add functions to modify disable_planes counter for an output 2019-08-26 16:18:22 +05:30
systemd-notify.c Rename zalloc.h to libweston/zalloc.h 2019-04-18 12:31:46 +03:00
text-backend.c Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
weston-screenshooter.c weston-debug: Rename weston-debug to weston-log to better reflect its purpose 2019-07-18 10:49:39 +03:00
weston.desktop Remove dbus-launch from weston.desktop 2017-01-18 12:21:57 +00:00
weston.h libweston: do not include config-parser.h 2019-07-18 06:43:38 +00:00
xwayland.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00