diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-08-07 16:04:36 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-08-07 16:04:36 +0200 |
| commit | 08c12f2ace96041e6ed5b344fc5fd5d0920bd4ea (patch) | |
| tree | e4fc42b776a7dc61704d46ed56b2f2f90b3bc2a8 /swaybar | |
| parent | f99585f313803ccf1c4fbca2e3f1697632855a51 (diff) | |
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) { struct icon_theme *theme = calloc(1, sizeof(struct icon_theme)); if (!theme) { + fclose(theme_file); return NULL; } theme->subdirs = create_list(); |
