mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 03:30:19 +01:00
screen-share: Guard pixman_image_unref call on shared_output_destroy
Prevent crashes during shared_output_destroy when cache_image is not initialized. Signed-off-by: Pablo Saavedra <psaavedra@igalia.com>
This commit is contained in:
parent
092fe3f7ec
commit
98d4438265
1 changed files with 2 additions and 1 deletions
|
|
@ -1086,7 +1086,8 @@ shared_output_destroy(struct shared_output *so)
|
|||
wl_list_remove(&so->output_destroyed.link);
|
||||
wl_list_remove(&so->frame_listener.link);
|
||||
|
||||
pixman_image_unref(so->cache_image);
|
||||
if (so->cache_image)
|
||||
pixman_image_unref(so->cache_image);
|
||||
free(so->tmp_data);
|
||||
|
||||
free(so);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue