summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/resources.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/resources.c b/gtk/resources.c
index 2906e0ac2..dfe3d3dad 100644
--- a/gtk/resources.c
+++ b/gtk/resources.c
@@ -484,10 +484,16 @@ nsgdk_pixbuf_new_from_resname(const char *resname, GdkPixbuf **pixbuf_out)
/* pixbuf resources are not currently direct */
break;
}
+
if (new_pixbuf == NULL) {
- LOG("Unable to create pixbuf from file for %s with path %s \"%s\"",
+ if (error != NULL) {
+ LOG("Unable to create pixbuf from file for %s with path %s \"%s\"",
resource->name, resource->path, error->message);
- g_error_free(error);
+ g_error_free(error);
+ } else {
+ LOG("Unable to create pixbuf from file for %s with path %s",
+ resource->name, resource->path);
+ }
return NSERROR_INIT_FAILED;
}
*pixbuf_out = new_pixbuf;