Fix a crash with icon themes

This commit is contained in:
Matthias Clasen
2006-12-02 19:48:22 +00:00
parent a4a874c38a
commit f71cc8fcaf
2 changed files with 7 additions and 0 deletions

View File

@ -952,6 +952,8 @@ insert_theme (GtkIconTheme *icon_theme, const char *theme_name)
if (!dirs)
{
g_warning ("Theme file for %s has no directories\n", theme_name);
priv->themes = g_list_remove (priv->themes, theme);
g_free (theme->name);
g_free (theme->display_name);
g_free (theme);
g_key_file_free (theme_file);