--- libnautilus-private/nautilus-thumbnails.c-	2007-02-01 12:44:41.000000000 -0200
+++ libnautilus-private/nautilus-thumbnails.c	2007-02-01 12:42:52.000000000 -0200
@@ -397,6 +397,16 @@
 		return NULL;
 	}
 
+        if ( error ) {
+		g_message ("Failed to load thumbnail image %s: %s", path, error->message);
+
+		g_object_unref (G_OBJECT (loader));
+		g_error_free (error);
+		g_free (buffer);
+
+		return NULL;
+        }
+
 	pixbuf = g_object_ref (gdk_pixbuf_loader_get_pixbuf (loader));
 
 	g_object_unref (G_OBJECT (loader));
