From a19781c504970ac6d221b8ec09548d8a635cb2d8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 23 Jul 2003 21:39:11 +0000 Subject: [PATCH] Close loader before unref'ing it. (#118146, Owen Taylor) 2003-07-23 Matthias Clasen * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Close loader before unref'ing it. (#118146, Owen Taylor) --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/gdk-pixbuf-io.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 68d96a61ef..d7a08be9d8 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2003-07-23 Matthias Clasen + + * 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 * makefile.msc : updated diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 42a19e4c58..00550e1cb0 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -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;