diff --git a/SOURCES/handle_close_error.patch b/SOURCES/handle_close_error.patch new file mode 100644 index 0000000..3685f93 --- /dev/null +++ b/SOURCES/handle_close_error.patch @@ -0,0 +1,26 @@ +diff -ru libopenraw-0.0.9.orig/gnome/pixbuf-loader.c libopenraw-0.0.9/gnome/pixbuf-loader.c +--- libopenraw-0.0.9.orig/gnome/pixbuf-loader.c 2011-11-13 08:00:09.000000000 +0100 ++++ libopenraw-0.0.9/gnome/pixbuf-loader.c 2016-01-14 15:06:13.910095566 +0100 +@@ -98,7 +98,6 @@ + + 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 @@ + 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; diff --git a/SPECS/libopenraw.spec b/SPECS/libopenraw.spec index a84ea3f..5ee68bf 100644 --- a/SPECS/libopenraw.spec +++ b/SPECS/libopenraw.spec @@ -1,10 +1,11 @@ Summary: Decode camera RAW files Name: libopenraw Version: 0.0.9 -Release: 6%{?dist} +Release: 7%{?dist} License: LGPLv3+ URL: http://libopenraw.freedesktop.org/wiki Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2 +Patch0: handle_close_error.patch BuildRequires: libtool autoconf automake BuildRequires: boost-devel @@ -64,6 +65,7 @@ digital cameras, in GTK+ applications. %prep %setup -q +%patch0 -p1 %build %configure --disable-static --enable-gnome @@ -127,6 +129,10 @@ gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || : %{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so %changelog +* Thu Jan 14 2016 Wim Taymans - 0.0.9-7 +- Handle errors in the close function +- Resolves: rhbz#1279153 + * Fri Jan 24 2014 Daniel Mach - 0.0.9-6 - Mass rebuild 2014-01-24