summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnome/pixbuf-loader.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnome/pixbuf-loader.c b/gnome/pixbuf-loader.c
index 152e7a8..8ab6387 100644
--- a/gnome/pixbuf-loader.c
+++ b/gnome/pixbuf-loader.c
@@ -98,7 +98,6 @@ gdk_pixbuf__or_image_stop_load (gpointer data, GError **error)
GdkPixbuf *pixbuf = NULL;
ORRawFileRef raw_file = NULL;
- (void)error;
raw_file = or_rawfile_new_from_memory(context->data->data, context->data->len,
OR_DATA_TYPE_NONE);
@@ -129,9 +128,13 @@ gdk_pixbuf__or_image_stop_load (gpointer data, GError **error)
context->user_data);
}
result = TRUE;
+ } else {
+ g_set_error (error,
+ GDK_PIXBUF_ERROR,
+ GDK_PIXBUF_ERROR_FAILED,
+ "Unable to load RAW file");
}
-
g_byte_array_free(context->data, TRUE);
free(context);
return result;