Commit ad534c2b authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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.
parent ecf2d107
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
......
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
......
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
......
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment