mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Fix memory leaks
This commit is contained in:
parent
0570eb19e5
commit
3af52d86f7
2 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue