summaryrefslogtreecommitdiff
path: root/src/switcher-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/switcher-util.c')
-rw-r--r--src/switcher-util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/switcher-util.c b/src/switcher-util.c
index 63b1619..82afa32 100644
--- a/src/switcher-util.c
+++ b/src/switcher-util.c
@@ -52,6 +52,7 @@ void
destroyWindowList (WindowList *l)
{
free (l->w);
+ free (l);
}
/**
@@ -100,7 +101,12 @@ void
destroyWindowTree (WindowTree *node)
{
destroyWindowList (node->windows);
+ for (int i = 0; i < childrenSize; ++i)
+ {
+ destroyWindowTree (node->children[i]);
+ }
free (node->children);
+ free (node);
}
/**