aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-16 16:44:38 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-16 16:44:38 -0400
commitc5d98fe6febc705487f4a8871f5abeb3aa36890b (patch)
tree762ecfc92de12eed31e8b7352e97af9fe609f045 /sway/container.c
parent75144318367dddd110f97c5693b2d543b7564f15 (diff)
parent5b860c67c3d8fcded0f88715fc69053f81c10449 (diff)
Merge pull request #45 from taiyu-len/master
fixed split [vh], small memory leak, unescape_strings handle \xnn
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c
index 46694cbd..3158b8b0 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -31,6 +31,9 @@ static void free_swayc(swayc_t *c) {
}
remove_child(c->parent, c);
}
+ if (c->name) {
+ free(c->name);
+ }
free(c);
}