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
..
calibrator.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
clickdot.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
cliptest.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
confine.c option-parser: Make bools boolean 2019-11-28 19:24:13 +00:00
content_protection.c clients: Add content-protection client app 2019-07-05 14:13:30 +05:30
desktop-shell.c desktop-shell:change expiration of minute and sec 2021-01-21 16:04:34 +05:30
dnd.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
editor.c option-parser: Make bools boolean 2019-11-28 19:24:13 +00:00
eventdemo.c option-parser: Make bools boolean 2019-11-28 19:24:13 +00:00
flower.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
fullscreen.c clients/fullscreen: Refuse to resize the surface size when fullscreen'ed 2019-11-25 20:40:24 +00:00
gears.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
image.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
ivi-shell-user-interface.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
keyboard.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
meson.build clients/simple-dmabuf-v4l: Add 'weston-direct-display' protocol 2020-01-29 14:39:04 +00:00
multi-resource.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
nested-client.c Unify the include style of shared/ headers 2019-10-04 16:04:48 +03:00
nested.c option-parser: Make bools boolean 2019-11-28 19:24:13 +00:00
presentation-shm.c clients/presentation-shm: use xdg_shell instead of wl_shell 2019-06-27 17:44:19 +00:00
resizor.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
scaler.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
screenshot.c screenshooter: rename some functions to avoid conflicts 2020-10-27 12:19:39 +00:00
simple-damage.c Redefine output rotations 2020-02-27 11:08:48 +00:00
simple-dmabuf-egl.c clients/simple-dmabuf-egl: don't add INVALID to modifier list 2021-05-17 11:59:58 +00:00
simple-dmabuf-v4l.c Add weston-drm-fourcc.h 2021-02-25 14:35:03 +02:00
simple-egl.c destroy shm, pointer, keyboard, touch and seat on exit 2021-05-15 18:57:59 +01:00
simple-im.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
simple-shm.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
simple-touch.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
smoke.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
stacking.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
subsurfaces.c option-parser: Make bools boolean 2019-11-28 19:24:13 +00:00
terminal.c option-parser: Make bools boolean 2019-11-28 19:24:13 +00:00
touch-calibrator.c clients: Fix/resolved doxygen warnings 2019-06-25 14:05:54 +00:00
transformed.c Redefine output rotations 2020-02-27 11:08:48 +00:00
weston-debug.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
weston-info.c clients: deprecate weston-info 2020-08-14 10:31:49 +00:00
window.c clients/window: fix leaks on start-up failure 2021-05-31 12:35:01 +03:00
window.h clients/window: drop support for rgb565 2019-12-11 19:28:30 +00:00