aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-03-31 19:45:30 -0400
committerTony Crisci <tony@dubstepdish.com>2018-03-31 19:45:30 -0400
commit27e394f8b07fed21f791f2a06b93c3bfc0f991b7 (patch)
treef8481fce37ae971c0f3cb30f6d1b7033c99b097e /sway/tree
parenteda425fdabb4050eb2ecc8741793d83e3a7bf154 (diff)
fix children list segfault
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index b3c6d80f..f4c82abe 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -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) {