forked from AuroraMiddleware/gtk
Don't leak the file contents.
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkicontheme.c (load_svg_at_size): Don't leak the file contents.
This commit is contained in:
parent
ecf2d1070c
commit
ad534c2bb7
@ -1,3 +1,8 @@
|
||||
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkicontheme.c (load_svg_at_size): Don't leak the
|
||||
file contents.
|
||||
|
||||
Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkicontheme.c (load_svg_at_size): Don't leak the
|
||||
file contents.
|
||||
|
||||
Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkicontheme.c (load_svg_at_size): Don't leak the
|
||||
file contents.
|
||||
|
||||
Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkicontheme.c (load_svg_at_size): Don't leak the
|
||||
file contents.
|
||||
|
||||
Mon Aug 9 00:13:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkaboutdialog.c (icon_set_new_from_pixbufs): Don't
|
||||
|
@ -2195,7 +2195,7 @@ load_svg_at_size (const gchar *filename,
|
||||
{
|
||||
GdkPixbuf *pixbuf = NULL;
|
||||
GdkPixbufLoader *loader = NULL;
|
||||
gchar *contents;
|
||||
gchar *contents = NULL;
|
||||
gsize length;
|
||||
|
||||
if (!g_file_get_contents (filename,
|
||||
@ -2219,6 +2219,8 @@ load_svg_at_size (const gchar *filename,
|
||||
bail:
|
||||
if (loader)
|
||||
g_object_unref (loader);
|
||||
if (contents)
|
||||
g_free (contents);
|
||||
|
||||
return pixbuf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user