Fix a crash

epel9
Matthias Clasen 17 years ago
parent 3c8a346ecf
commit 8e01ea404e

@ -5,7 +5,7 @@
Summary: The libglade library for loading user interfaces Summary: The libglade library for loading user interfaces
Name: libglade2 Name: libglade2
Version: 2.6.2 Version: 2.6.2
Release: 4%{?dist} Release: 5%{?dist}
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
Source: http://download.gnome.org/sources/libglade/2.6/libglade-%{version}.tar.bz2 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 # http://bugzilla.gnome.org/show_bug.cgi?id=121025
Patch1: libglade-2.0.1-nowarning.patch Patch1: libglade-2.0.1-nowarning.patch
# fixed in upstream svn
Patch2: unref.patch
%description %description
Libglade is a small library that allows a program to load its user Libglade is a small library that allows a program to load its user
interface from am XML description at runtime. Libglade uses the XML 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} %setup -q -n libglade-%{version}
%patch1 -p1 -b .nowarning %patch1 -p1 -b .nowarning
%patch2 -p1 -b .unref
%build %build
%configure --disable-gtk-doc %configure --disable-gtk-doc
@ -86,6 +90,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gtk-doc/html/libglade %{_datadir}/gtk-doc/html/libglade
%changelog %changelog
* Tue Feb 19 2008 Matthias Clasen <mclasen@redhat.com> 2.6.2-5
- Fix a crash
* Sat Feb 9 2008 Matthias Clasen <mclasen@redhat.com> 2.6.2-4 * Sat Feb 9 2008 Matthias Clasen <mclasen@redhat.com> 2.6.2-4
- Rebuild for gcc 4.3 - Rebuild for gcc 4.3

@ -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;
}
Loading…
Cancel
Save