Commit 5a119668 authored by Matthias Clasen's avatar Matthias Clasen

Fix memory leaks in error paths

svn path=/trunk/; revision=17165
parent 18cc703f
2007-01-16 Matthias Clasen <>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Just
call gdk_pixbuf_loader_close to close the loader in
the error case. Fixes memory leaks in the error case,
pointed out by David Necas.
2007-01-04 Matthias Clasen <>
* io-bmp.c (OneLine32): Fix a warning
......@@ -472,16 +472,7 @@ gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
gdk_pixbuf_loader_ensure_error (loader, error);
priv->closed = TRUE;
if (priv->image_module && priv->holds_threadlock)
_gdk_pixbuf_unlock (priv->image_module);
priv->holds_threadlock = FALSE;
g_signal_emit (loader, pixbuf_loader_signals[CLOSED], 0);
gdk_pixbuf_loader_close (loader, NULL);
return FALSE;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment