Files
weston/clients
Pekka Paalanen 1f3e9045ad clients/window: fix leaks on start-up failure
Trying to run viewporter-test with ASan leak checking,
weston-desktop-shell helper client reports many leaks, because the
compositor quits before the client can start. Hence the
wl_display_roundtrip() fails.

Clean up by calling display_destroy() when wl_display_roundtrip() fails.
It's late enough that all kinds of things may have been allocated, so a
special local tear-down path is not feasible.

To make that work, display_destroy() must handle many things that might
be NULL which normally aren't. Also display_create() needs to initialize
lists early enough so that cleaning them up works.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2021-05-31 12:35:01 +03:00
..
2019-11-28 19:24:13 +00:00
2019-11-28 19:24:13 +00:00
2019-11-28 19:24:13 +00:00
2019-11-28 19:24:13 +00:00
2020-02-27 11:08:48 +00:00
2021-02-25 14:35:03 +02:00
2019-11-28 19:24:13 +00:00
2020-02-27 11:08:48 +00:00
2020-08-14 10:31:49 +00:00