mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
Fix use-after free introduced by cbe7364
This commit is contained in:
parent
6271abd644
commit
a82aa2a20d
1 changed files with 1 additions and 1 deletions
|
@ -516,10 +516,10 @@ swayc_t *destroy_view(swayc_t *view) {
|
|||
return NULL;
|
||||
}
|
||||
sway_log(L_DEBUG, "Destroying view '%p'", view);
|
||||
swayc_t *parent = view->parent;
|
||||
free_swayc(view);
|
||||
|
||||
// Destroy empty containers
|
||||
swayc_t *parent = view->parent;
|
||||
if (parent && parent->type == C_CONTAINER) {
|
||||
return destroy_container(parent);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue