Fix a crash

This commit is contained in:
Matthias Clasen 2008-07-03 22:59:36 +00:00
parent 81b0d53672
commit 6ea16ff425
2 changed files with 19 additions and 1 deletions

11
crash.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up glib-2.17.3/gio/gdesktopappinfo.c.crash glib-2.17.3/gio/gdesktopappinfo.c
--- glib-2.17.3/gio/gdesktopappinfo.c.crash 2008-07-03 18:57:41.000000000 -0400
+++ glib-2.17.3/gio/gdesktopappinfo.c 2008-07-03 18:57:47.000000000 -0400
@@ -241,7 +241,6 @@ g_desktop_app_info_new_from_keyfile (GKe
}
g_free (t);
}
- g_free (try_exec);
info = g_object_new (G_TYPE_DESKTOP_APP_INFO, NULL);
info->filename = NULL;

View File

@ -3,7 +3,7 @@
Summary: A library of handy utility functions Summary: A library of handy utility functions
Name: glib2 Name: glib2
Version: 2.17.3 Version: 2.17.3
Release: 2%{?dist} Release: 3%{?dist}
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.gtk.org URL: http://www.gtk.org
@ -25,6 +25,9 @@ Patch2: gio-2.16-only-pass-uri-to-gio-apps.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=529694 # https://bugzilla.gnome.org/show_bug.cgi?id=529694
Patch3: gio-2.16-selinux-set-support.diff Patch3: gio-2.16-selinux-set-support.diff
# Fixed in upstream svn
Patch4: crash.patch
%description %description
GLib is the low-level core library that forms the basis GLib is the low-level core library that forms the basis
for projects such as GTK+ and GNOME. It provides data structure for projects such as GTK+ and GNOME. It provides data structure
@ -58,6 +61,7 @@ of version 2 of the GLib library.
%setup -q -n glib-%{version} %setup -q -n glib-%{version}
%patch2 -p1 -b .only-pass-uri-to-gio-apps %patch2 -p1 -b .only-pass-uri-to-gio-apps
%patch3 -p0 -b .selinux %patch3 -p0 -b .selinux
%patch4 -p1 -b .crash
%build %build
%configure --disable-gtk-doc --enable-static %configure --disable-gtk-doc --enable-static
@ -132,6 +136,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/lib*.a %{_libdir}/lib*.a
%changelog %changelog
* Thu Jul 3 2008 Matthias Clasen <mclasen@redhat.com> - 2.17.3-3
- Fix a stupid crash
* Wed Jul 2 2008 Matthias Clasen <mclasen@redhat.com> - 2.17.3-1 * Wed Jul 2 2008 Matthias Clasen <mclasen@redhat.com> - 2.17.3-1
- Update to 2.17.3 - Update to 2.17.3