Fix small memory leak in launcher
This commit is contained in:
@@ -457,10 +457,10 @@ void launcher_load_icons(Launcher *launcher)
|
|||||||
launcherIcon->icon_name = entry.icon ? strdup(entry.icon) : strdup(DEFAULT_ICON);
|
launcherIcon->icon_name = entry.icon ? strdup(entry.icon) : strdup(DEFAULT_ICON);
|
||||||
launcherIcon->icon_size = 1;
|
launcherIcon->icon_size = 1;
|
||||||
launcherIcon->icon_tooltip = entry.name ? strdup(entry.name) : strdup(entry.exec);
|
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);
|
launcher->list_icons = g_slist_append(launcher->list_icons, launcherIcon);
|
||||||
add_area(&launcherIcon->area, (Area *)launcher);
|
add_area(&launcherIcon->area, (Area *)launcher);
|
||||||
}
|
}
|
||||||
|
free_desktop_entry(&entry);
|
||||||
app = g_slist_next(app);
|
app = g_slist_next(app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user