rpms/librsvg2/devel rsvg-better-free.patch, NONE, 1.1 librsvg2.spec, 1.70, 1.71
Matthias Clasen
mclasen at fedoraproject.org
Thu Sep 18 18:45:32 UTC 2008
Author: mclasen
Update of /cvs/extras/rpms/librsvg2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20810
Modified Files:
librsvg2.spec
Added Files:
rsvg-better-free.patch
Log Message:
pug a memory leak
rsvg-better-free.patch:
--- NEW FILE rsvg-better-free.patch ---
Index: rsvg-image.c
===================================================================
--- rsvg-image.c (revision 1176)
+++ rsvg-image.c (working copy)
@@ -472,9 +472,10 @@
RsvgNodeImage *z = (RsvgNodeImage *) self;
rsvg_state_finalize (z->super.state);
g_free (z->super.state);
+ z->super.state = NULL;
if (z->img)
g_object_unref (G_OBJECT (z->img));
- g_free (z);
+ _rsvg_node_free(self);
}
static void
Index: librsvg2.spec
===================================================================
RCS file: /cvs/extras/rpms/librsvg2/devel/librsvg2.spec,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- librsvg2.spec 5 Mar 2008 01:17:28 -0000 1.70
+++ librsvg2.spec 18 Sep 2008 18:45:02 -0000 1.71
@@ -13,12 +13,15 @@
Name: librsvg2
Summary: An SVG library based on cairo
Version: 2.22.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: http://download.gnome.org/sources/librsvg/2.22/librsvg-%{version}.tar.bz2
+# http://bugzilla.gnome.org/show_bug.cgi?id=475851
Patch1: filter-leak.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=444444
+Patch2: rsvg-better-free.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: gtk2 >= %{gtk2_version}
Requires: libxml2 >= %{libxml2_version}
@@ -63,6 +66,7 @@
%prep
%setup -q -n librsvg-%{version}
%patch1 -p1 -b .filter-leak
+%patch2 -p0 -b .rsvg-better-free
%build
%configure --with-svgz \
@@ -118,6 +122,9 @@
%doc %{_datadir}/gtk-doc/html/rsvg
%changelog
+* Thu Sep 18 2008 Matthias Clasen <mclasen at redhat.com> - 2.22.2-2
+- Plug a memory leak
+
* Tue Mar 4 2008 Matthias Clasen <mclasen at redhat.com> - 2.22.2-1
- Update to 2.22.2
More information about the fedora-extras-commits
mailing list