[gnome-desktop] thumbnailer: Check gdk_pixbuf_loader_close()'s retval
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] thumbnailer: Check gdk_pixbuf_loader_close()'s retval
- Date: Thu, 5 Sep 2013 16:48:55 +0000 (UTC)
commit 1e28ad96efcab7df6e9e34bc6d645eb72ca6202e
Author: Bastien Nocera <hadess hadess net>
Date: Sat Aug 24 05:37:53 2013 +0200
thumbnailer: Check gdk_pixbuf_loader_close()'s retval
https://bugzilla.gnome.org/show_bug.cgi?id=699252
libgnome-desktop/gnome-desktop-thumbnail.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail.c b/libgnome-desktop/gnome-desktop-thumbnail.c
index 14e4131..76657e6 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]