diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2020-06-12 15:28:47 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-13 00:55:33 +0200 |
commit | 90d936d4ad614e1d3e8d0faa29de28da79b31733 (patch) | |
tree | 1e24e2b5612beda38d697f1346e328500da6c57f /sway/tree | |
parent | swaybar: ensure correct init order for status_line (diff) | |
download | sway-90d936d4ad614e1d3e8d0faa29de28da79b31733.tar.gz sway-90d936d4ad614e1d3e8d0faa29de28da79b31733.tar.zst sway-90d936d4ad614e1d3e8d0faa29de28da79b31733.zip |
view: fix surface_new_subsurface use-after-free
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/view.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 03ff89b5..ec481596 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -949,6 +949,7 @@ void view_child_destroy(struct sway_view_child *child) { | |||
949 | wl_list_remove(&child->surface_commit.link); | 949 | wl_list_remove(&child->surface_commit.link); |
950 | wl_list_remove(&child->surface_destroy.link); | 950 | wl_list_remove(&child->surface_destroy.link); |
951 | wl_list_remove(&child->view_unmap.link); | 951 | wl_list_remove(&child->view_unmap.link); |
952 | wl_list_remove(&child->surface_new_subsurface.link); | ||
952 | 953 | ||
953 | if (child->impl && child->impl->destroy) { | 954 | if (child->impl && child->impl->destroy) { |
954 | child->impl->destroy(child); | 955 | child->impl->destroy(child); |