mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
fix children list segfault
This commit is contained in:
parent
eda425fdab
commit
27e394f8b0
|
@ -71,8 +71,8 @@ static struct sway_container *_container_destroy(struct sway_container *cont) {
|
|||
// container_remove_child, which removes child from this container
|
||||
while (cont->children != NULL && cont->children->length != 0) {
|
||||
struct sway_container *child = cont->children->items[0];
|
||||
container_remove_child(child);
|
||||
container_destroy(child);
|
||||
list_del(cont->children, 0);
|
||||
}
|
||||
}
|
||||
if (cont->marks) {
|
||||
|
|
Loading…
Reference in a new issue