diff options
author | taiyu <[email protected]> | 2015-08-15 21:21:20 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-08-15 21:21:20 -0700 |
commit | 083d1eed1f61f8cc7397031f1ab987022ba6868e (patch) | |
tree | 22d5c72c3352139cf0adda5f9b8c4c5e6245f73c /sway/container.c | |
parent | d3d0ba3a4b8a79384ae262d0168ce111c06d4c1b (diff) |
fixed 2 small memory leaks & adds format attribute to log.
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index 98941b2c..d1c8a7de 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); } |