mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
view: fix surface_new_subsurface use-after-free
This commit is contained in:
parent
bf8d23a836
commit
d672c08606
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue