diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-17 08:46:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-17 08:46:53 -0700 |
commit | bec982bba62db39f734d21ffbd2a3c8cefb3f6bd (patch) | |
tree | aff37d623566b7fa85fcdaf78f8ae046fec8cde5 /sway/tree | |
parent | f516dbfb6d3380de24751de9a3f3156ece869e02 (diff) | |
parent | 3931cb85b220294764db959513ecadb893e2c47b (diff) | |
download | sway-bec982bba62db39f734d21ffbd2a3c8cefb3f6bd.tar.xz |
Merge pull request #2289 from frsfnrrg/memory-fixes
Fix memory leaks and reference to uninitialized
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/view.c | 4 |
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) { view->urgent_timer = NULL; } - struct sway_container *parent; struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE); + struct sway_container *parent; if (view->is_fullscreen) { ws->sway_workspace->fullscreen = NULL; parent = container_destroy(view->swayc); arrange_windows(ws->parent); } else { - struct sway_container *parent = container_destroy(view->swayc); + parent = container_destroy(view->swayc); arrange_windows(parent); } if (parent->type >= C_WORKSPACE) { // if the workspace still exists |