diff --git a/ChangeLog b/ChangeLog index 922e7dc11d..23d58992e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-15 Paolo Borelli + + * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak. + Fixes bug #362439. + 2006-10-08 Matthias Clasen * gtk/gtkprintunixdialog.c (update_dialog_from_capabilities): Fix diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 92270bc459..0baef66250 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -507,13 +507,15 @@ gtk_icon_theme_set_screen (GtkIconTheme *icon_theme, static gboolean pixbuf_supports_svg (void) { - GSList *formats = gdk_pixbuf_get_formats (); + GSList *formats; GSList *tmp_list; static gint found_svg = -1; if (found_svg != -1) return found_svg; - + + formats = gdk_pixbuf_get_formats (); + found_svg = FALSE; for (tmp_list = formats; tmp_list && !found_svg; tmp_list = tmp_list->next) {