commit 90d936d4ad614e1d3e8d0faa29de28da79b31733
parent c22caa54a8b40e152b141c18d32f3bad383d9d1c
Author: Ronan Pigott <rpigott@berkeley.edu>
Date: Fri, 12 Jun 2020 15:28:47 -0700
view: fix surface_new_subsurface use-after-free
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sway/tree/view.c b/sway/tree/view.c
@@ -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);