diff options
author | 2019-08-07 16:04:36 +0200 | |
---|---|---|
committer | 2019-08-12 09:42:11 +0900 | |
commit | 3af52d86f73986e5459444509b53302d400c84b6 (patch) | |
tree | e4fc42b776a7dc61704d46ed56b2f2f90b3bc2a8 /swaybar | |
parent | view_update_size: fix surface_width/height mismatch (diff) | |
download | sway-3af52d86f73986e5459444509b53302d400c84b6.tar.gz sway-3af52d86f73986e5459444509b53302d400c84b6.tar.zst sway-3af52d86f73986e5459444509b53302d400c84b6.zip |
Fix memory leaks
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/tray/icon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/tray/icon.c b/swaybar/tray/icon.c index c7e7f6bc..429bea36 100644 --- a/swaybar/tray/icon.c +++ b/swaybar/tray/icon.c | |||
@@ -207,6 +207,7 @@ static struct icon_theme *read_theme_file(char *basedir, char *theme_name) { | |||
207 | 207 | ||
208 | struct icon_theme *theme = calloc(1, sizeof(struct icon_theme)); | 208 | struct icon_theme *theme = calloc(1, sizeof(struct icon_theme)); |
209 | if (!theme) { | 209 | if (!theme) { |
210 | fclose(theme_file); | ||
210 | return NULL; | 211 | return NULL; |
211 | } | 212 | } |
212 | theme->subdirs = create_list(); | 213 | theme->subdirs = create_list(); |