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

Close loader before unref'ing it. (#118146, Owen Taylor)

2003-07-23  Matthias Clasen  <maclas@gmx.de>

	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Close loader before unref'ing
	it.  (#118146, Owen Taylor)
parent d5d9ecbf
2003-07-23 Matthias Clasen <maclas@gmx.de>
* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Close loader before unref'ing
it. (#118146, Owen Taylor)
2003-03-01 Hans Breuer <hans@breuer.org>
* makefile.msc : updated
......
......@@ -825,6 +825,7 @@ gdk_pixbuf_new_from_file_at_size (const char *filename,
length = fread (buffer, 1, sizeof (buffer), f);
if (length > 0)
if (!gdk_pixbuf_loader_write (loader, buffer, length, error)) {
gdk_pixbuf_loader_close (loader, NULL);
fclose (f);
g_object_unref (G_OBJECT (loader));
return NULL;
......
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