aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cpp-compile-test.cpp
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-09-16 09:53:39 +0200
committerSimon Ser <contact@emersion.fr>2023-02-27 21:00:10 +0000
commitab526f8d7c80433effd01c1994d50c618c0b7207 (patch)
tree3aa458d83d9da88b449342d6bb4fe261d28c47b6 /tests/cpp-compile-test.cpp
parentprotocol: Clarify meaning of input region for cursors, DnD icons (diff)
downloadwayland-ab526f8d7c80433effd01c1994d50c618c0b7207.tar
wayland-ab526f8d7c80433effd01c1994d50c618c0b7207.tar.gz
wayland-ab526f8d7c80433effd01c1994d50c618c0b7207.tar.bz2
wayland-ab526f8d7c80433effd01c1994d50c618c0b7207.tar.lz
wayland-ab526f8d7c80433effd01c1994d50c618c0b7207.tar.xz
wayland-ab526f8d7c80433effd01c1994d50c618c0b7207.tar.zst
wayland-ab526f8d7c80433effd01c1994d50c618c0b7207.zip
shm: fix segfault when accessing destroyed pool resource
With wl_shm_buffer_ref_pool(), it's possible for a wl_shm_pool to outlive its wl_resource. We need to be careful not to access wl_shm_pool.resource if it's been destroyed. Reset resource to NULL in the resource destroy handler, and add NULL checks. Signed-off-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'tests/cpp-compile-test.cpp')
0 files changed, 0 insertions, 0 deletions