Commit 1e28ad96 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

thumbnailer: Check gdk_pixbuf_loader_close()'s retval

https://bugzilla.gnome.org/show_bug.cgi?id=699252
parent fef06300
......@@ -440,7 +440,11 @@ _gdk_pixbuf_new_from_uri_at_scale (const char *uri,
}
}
gdk_pixbuf_loader_close (loader, NULL);
if (gdk_pixbuf_loader_close (loader, &error) == FALSE) {
g_warning ("Error creating thumbnail for %s: %s", uri, error->message);
g_clear_error (&error);
result = FALSE;
}
if (!result) {
g_object_unref (G_OBJECT (loader));
......
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