diff options
author | 2015-08-15 21:21:20 -0700 | |
---|---|---|
committer | 2015-08-15 21:21:20 -0700 | |
commit | 083d1eed1f61f8cc7397031f1ab987022ba6868e (patch) | |
tree | 22d5c72c3352139cf0adda5f9b8c4c5e6245f73c /sway/container.c | |
parent | Merge pull request #35 from taiyu-len/master (diff) | |
download | sway-083d1eed1f61f8cc7397031f1ab987022ba6868e.tar.gz sway-083d1eed1f61f8cc7397031f1ab987022ba6868e.tar.zst sway-083d1eed1f61f8cc7397031f1ab987022ba6868e.zip |
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) { | |||
31 | } | 31 | } |
32 | remove_child(c->parent, c); | 32 | remove_child(c->parent, c); |
33 | } | 33 | } |
34 | if (c->name) { | ||
35 | free(c->name); | ||
36 | } | ||
34 | free(c); | 37 | free(c); |
35 | } | 38 | } |
36 | 39 | ||