summaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-07-17 08:46:53 -0700
committerLibravatar GitHub <noreply@github.com>2018-07-17 08:46:53 -0700
commitbec982bba62db39f734d21ffbd2a3c8cefb3f6bd (patch)
treeaff37d623566b7fa85fcdaf78f8ae046fec8cde5 /sway/tree
parentMerge pull request #2286 from RyanDwyer/default-floating-border (diff)
parentFix memory leak in sway/desktop/idle_inhibit_v1.c (diff)
downloadsway-1.0-alpha.4.tar.gz
sway-1.0-alpha.4.tar.zst
sway-1.0-alpha.4.zip
Merge pull request #2289 from frsfnrrg/memory-fixes1.0-alpha.4
Fix memory leaks and reference to uninitialized
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 70ab9364..fc31699c 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -621,16 +621,16 @@ void view_unmap(struct sway_view *view) {
621 view->urgent_timer = NULL; 621 view->urgent_timer = NULL;
622 } 622 }
623 623
624 struct sway_container *parent;
625 struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE); 624 struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
626 625
626 struct sway_container *parent;
627 if (view->is_fullscreen) { 627 if (view->is_fullscreen) {
628 ws->sway_workspace->fullscreen = NULL; 628 ws->sway_workspace->fullscreen = NULL;
629 parent = container_destroy(view->swayc); 629 parent = container_destroy(view->swayc);
630 630
631 arrange_windows(ws->parent); 631 arrange_windows(ws->parent);
632 } else { 632 } else {
633 struct sway_container *parent = container_destroy(view->swayc); 633 parent = container_destroy(view->swayc);
634 arrange_windows(parent); 634 arrange_windows(parent);
635 } 635 }
636 if (parent->type >= C_WORKSPACE) { // if the workspace still exists 636 if (parent->type >= C_WORKSPACE) { // if the workspace still exists