mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
plug memory leak. Fixes bug #362439.
2006-10-15 Paolo Borelli <pborelli@katamail.com> * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak. Fixes bug #362439.
This commit is contained in:
parent
9193575c30
commit
a1808a8ef3
@ -1,3 +1,8 @@
|
||||
2006-10-15 Paolo Borelli <pborelli@katamail.com>
|
||||
|
||||
* gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
|
||||
Fixes bug #362439.
|
||||
|
||||
2006-10-12 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkcombobox.c (gtk_combo_box_class_init): fix commit below
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user