Fixed multiple memory leaks

This commit is contained in:
o9000
2016-08-08 11:15:59 +02:00
parent 1d4f64d745
commit a09e1a0e45
3 changed files with 8 additions and 0 deletions

View File

@@ -305,6 +305,7 @@ void free_themes(IconThemeWrapper *wrapper)
{
if (!wrapper)
return;
free(wrapper->icon_theme_name);
for (GSList *l = wrapper->themes; l; l = l->next) {
IconTheme *theme = (IconTheme *)l->data;
free_icon_theme(theme);