diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-30 14:31:17 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-30 14:31:17 -0400 |
commit | 88f08a42f30c6d79adbc9c1d5d897113fcd3a6f4 (patch) | |
tree | 8616074124e558fb6787be9cb3336d61663d9a86 /sway/tree/container.c | |
parent | b28e6d23698c98d616710c44a211a8121943b3ca (diff) | |
download | sway-88f08a42f30c6d79adbc9c1d5d897113fcd3a6f4.tar.xz |
Fix segfault when reaping invisible workspaces
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 778108b4..c3cf6c64 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -79,7 +79,7 @@ struct sway_container *container_destroy(struct sway_container *cont) { list_free(cont->marks); } if (parent) { - container_remove_child(cont); + parent = container_remove_child(cont); } if (cont->name) { free(cont->name); |