From f71cc8fcafaac561fbe50ecad32c146b614fb6ec Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 2 Dec 2006 19:48:22 +0000 Subject: [PATCH] Fix a crash with icon themes --- ChangeLog | 5 +++++ gtk/gtkicontheme.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 11fae552ba..2fed51d6af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-02 Matthias Clasen + + * gtk/gtkicontheme.c (insert_theme): Properly clean up + if an icon theme index file has no directories. (#381236) + 2006-12-02 Dom Lachowicz * src/modules/engines/ms-windows/msw_style.c: Bug 351678 - Notebooks diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 52e2673a02..f04fa73a8f 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -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);