Fix small memory leak in launcher

This commit is contained in:
o9000 2016-01-26 20:30:57 +01:00
parent 402713d4b1
commit b196bb1c00

View file

@ -457,10 +457,10 @@ void launcher_load_icons(Launcher *launcher)
launcherIcon->icon_name = entry.icon ? strdup(entry.icon) : strdup(DEFAULT_ICON);
launcherIcon->icon_size = 1;
launcherIcon->icon_tooltip = entry.name ? strdup(entry.name) : strdup(entry.exec);
free_desktop_entry(&entry);
launcher->list_icons = g_slist_append(launcher->list_icons, launcherIcon);
add_area(&launcherIcon->area, (Area *)launcher);
}
free_desktop_entry(&entry);
app = g_slist_next(app);
}
}