diff options
| author | Simon Ser <contact@emersion.fr> | 2022-09-16 09:53:39 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2023-02-27 21:00:10 +0000 |
| commit | ab526f8d7c80433effd01c1994d50c618c0b7207 (patch) | |
| tree | 3aa458d83d9da88b449342d6bb4fe261d28c47b6 /tests/cpp-compile-test.cpp | |
| parent | protocol: Clarify meaning of input region for cursors, DnD icons (diff) | |
| download | wayland-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
