mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
view: fix surface_new_subsurface use-after-free
This commit is contained in:
parent
c22caa54a8
commit
90d936d4ad
@ -949,6 +949,7 @@ void view_child_destroy(struct sway_view_child *child) {
|
||||
wl_list_remove(&child->surface_commit.link);
|
||||
wl_list_remove(&child->surface_destroy.link);
|
||||
wl_list_remove(&child->view_unmap.link);
|
||||
wl_list_remove(&child->surface_new_subsurface.link);
|
||||
|
||||
if (child->impl && child->impl->destroy) {
|
||||
child->impl->destroy(child);
|
||||
|
Loading…
Reference in New Issue
Block a user