Index: gdk-pixbuf-loader.c
===================================================================
--- gdk-pixbuf-loader.c	(revision 18350)
+++ gdk-pixbuf-loader.c	(working copy)
@@ -723,8 +723,8 @@
                         GError *tmp = NULL;
                         if (!priv->image_module->stop_load (priv->context, &tmp) || tmp)
                                 {
+                                        gdk_pixbuf_loader_ensure_error (loader, &tmp);
 					g_propagate_error (error, tmp);
-                                        gdk_pixbuf_loader_ensure_error (loader, error);
                                         retval = FALSE;
                                 }
                 }
