diff --git a/libglade2.spec b/libglade2.spec index 02629b8..7ea1d32 100644 --- a/libglade2.spec +++ b/libglade2.spec @@ -5,7 +5,7 @@ Summary: The libglade library for loading user interfaces Name: libglade2 Version: 2.6.2 -Release: 4%{?dist} +Release: 5%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: http://download.gnome.org/sources/libglade/2.6/libglade-%{version}.tar.bz2 @@ -23,6 +23,9 @@ BuildRequires: gettext-devel # http://bugzilla.gnome.org/show_bug.cgi?id=121025 Patch1: libglade-2.0.1-nowarning.patch +# fixed in upstream svn +Patch2: unref.patch + %description Libglade is a small library that allows a program to load its user interface from am XML description at runtime. Libglade uses the XML @@ -52,6 +55,7 @@ that you can use to develop libglade applications. %setup -q -n libglade-%{version} %patch1 -p1 -b .nowarning +%patch2 -p1 -b .unref %build %configure --disable-gtk-doc @@ -86,6 +90,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/gtk-doc/html/libglade %changelog +* Tue Feb 19 2008 Matthias Clasen 2.6.2-5 +- Fix a crash + * Sat Feb 9 2008 Matthias Clasen 2.6.2-4 - Rebuild for gcc 4.3 diff --git a/unref.patch b/unref.patch new file mode 100644 index 0000000..4e6c326 --- /dev/null +++ b/unref.patch @@ -0,0 +1,12 @@ +diff -up libglade-2.6.2/glade/glade-xml.c.unref libglade-2.6.2/glade/glade-xml.c +--- libglade-2.6.2/glade/glade-xml.c.unref 2008-02-19 21:59:52.000000000 -0500 ++++ libglade-2.6.2/glade/glade-xml.c 2008-02-19 22:00:10.000000000 -0500 +@@ -256,7 +256,7 @@ glade_xml_new_from_buffer(const char *bu + if( !glade_xml_construct_from_buffer(self, buffer, size, root, domain) ) + { + /* Clean up, the parser was unable to load the object */ +- g_free(self); ++ g_object_unref(self); + return NULL; + } +