0001-Initialize-error-pointer-for-gdk_pixbuf_new_from_fil.patch: Backport

a crash fix from mainline.
This commit is contained in:
Adam Jackson 2011-10-06 10:26:53 -04:00
commit 750ff09d4d
2 changed files with 44 additions and 4 deletions

View File

@ -0,0 +1,27 @@
From e0c575ea768f2f5bb01cfc02908ddd48e691999d Mon Sep 17 00:00:00 2001
From: Michael Hamann <michael@content-space.de>
Date: Mon, 3 Oct 2011 00:49:55 +0200
Subject: [PATCH] Initialize error pointer for
gdk_pixbuf_new_from_file_at_size properly
Signed-off-by: Richard Hughes <richard@hughsie.com>
---
src/gcm-calibrate-main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gcm-calibrate-main.c b/src/gcm-calibrate-main.c
index b8ef50a..cdf25ac 100644
--- a/src/gcm-calibrate-main.c
+++ b/src/gcm-calibrate-main.c
@@ -2072,7 +2072,7 @@ gcm_calib_image_changed_cb (GcmCalibrate *calibrate,
{
gchar *path;
GdkPixbuf *pixbuf;
- GError *error;
+ GError *error = NULL;
if (filename != NULL) {
path = g_build_filename (GCM_DATA, "icons", filename, NULL);
--
1.7.6.4

View File

@ -1,11 +1,12 @@
Summary: Color management tools for GNOME Summary: Color management tools for GNOME
Name: gnome-color-manager Name: gnome-color-manager
Version: 3.2.0 Version: 3.2.0
Release: 1%{?dist} Release: 3%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
URL: http://projects.gnome.org/gnome-color-manager/ URL: http://projects.gnome.org/gnome-color-manager/
Source0: http://download.gnome.org/sources/gnome-color-manager/3.2/%{name}-%{version}.tar.xz Source0: http://download.gnome.org/sources/gnome-color-manager/3.2/%{name}-%{version}.tar.xz
Patch0: 0001-Initialize-error-pointer-for-gdk_pixbuf_new_from_fil.patch
Requires: color-filesystem >= 1-7 Requires: color-filesystem >= 1-7
Requires: gnome-icon-theme Requires: gnome-icon-theme
@ -49,6 +50,7 @@ and generate color profiles in the GNOME desktop.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .rui
%build %build
%configure --disable-scrollkeeper --disable-schemas-install %configure --disable-scrollkeeper --disable-schemas-install
@ -102,18 +104,29 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/dbus-1/services/org.gnome.ColorManager.service %{_datadir}/dbus-1/services/org.gnome.ColorManager.service
%changelog %changelog
* Thu Oct 06 2011 Adam Jackson <ajax@redhat.com> 3.2.0-3
- 0001-Initialize-error-pointer-for-gdk_pixbuf_new_from_fil.patch: Backport
a crash fix from mainline.
* Mon Sep 26 2011 Richard Hughes <rhughes@redhat.com> - 3.2.0-2
- Rebuild for libmash API update.
* Mon Sep 26 2011 Richard Hughes <rhughes@redhat.com> - 3.2.0-1 * Mon Sep 26 2011 Richard Hughes <rhughes@redhat.com> - 3.2.0-1
- New upstream version. - New upstream version.
* Tue Sep 20 2011 Matthias Clasen <mclasen@redhat.com> - 3.1.92-2
- Rebuild against newer clutter
* Mon Sep 19 2011 Richard Hughes <rhughes@redhat.com> - 3.1.92-1 * Mon Sep 19 2011 Richard Hughes <rhughes@redhat.com> - 3.1.92-1
- New upstream version. - New upstream version.
* Fri Sep 16 2011 Richard Hughes <rhughes@redhat.com> - 3.1.91-3
- Rebuild for libmash soname update (which for the moment will disable
the 3D renderer code).
* Mon Sep 05 2011 Richard Hughes <rhughes@redhat.com> - 3.1.91-1 * Mon Sep 05 2011 Richard Hughes <rhughes@redhat.com> - 3.1.91-1
- New upstream version. - New upstream version.
* Tue Aug 30 2011 Richard Hughes <rhughes@redhat.com> - 3.1.90-2
- BR a high enough colord.
* Tue Aug 30 2011 Richard Hughes <rhughes@redhat.com> - 3.1.90-1 * Tue Aug 30 2011 Richard Hughes <rhughes@redhat.com> - 3.1.90-1
- New upstream version. - New upstream version.