rpms/libwnck/devel libwnck-2.18.0-property-leak.patch, NONE, 1.1 libwnck.spec, 1.67, 1.68

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Apr 9 23:05:20 UTC 2007


Author: mclasen

Update of /cvs/dist/rpms/libwnck/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv19134

Modified Files:
	libwnck.spec 
Added Files:
	libwnck-2.18.0-property-leak.patch 
Log Message:
Plug a small memory leak


libwnck-2.18.0-property-leak.patch:
 xutils.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

--- NEW FILE libwnck-2.18.0-property-leak.patch ---
--- libwnck-2.18.0/libwnck/xutils.c.property-leak	2007-04-10 00:47:26.000000000 +0200
+++ libwnck-2.18.0/libwnck/xutils.c	2007-04-10 00:56:29.000000000 +0200
@@ -245,11 +245,13 @@
                                           &list);
 
   if (count == 0)
-    return NULL;
+    retval = NULL;
+  else
+    {
+      retval = list[0];
+      list[0] = g_strdup (""); /* something to free */
+    }
 
-  retval = list[0];
-  list[0] = g_strdup (""); /* something to free */
-  
   g_strfreev (list);
 
   return retval;


Index: libwnck.spec
===================================================================
RCS file: /cvs/dist/rpms/libwnck/devel/libwnck.spec,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- libwnck.spec	29 Mar 2007 01:36:17 -0000	1.67
+++ libwnck.spec	9 Apr 2007 23:05:18 -0000	1.68
@@ -6,7 +6,7 @@
 Summary: Window Navigator Construction Kit
 Name: libwnck
 Version: 2.18.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 URL: http://ftp.gnome.org/pub/GNOME/sources/libwnck/
 Source0: http://ftp.gnome.org/pub/gnome/sources/libwnck/2.18/%{name}-%{version}.tar.bz2
 License: LGPL
@@ -31,6 +31,8 @@
 Patch3: libwnck-2.18.0-appearance.patch
 Patch4: libwnck-2.18.0-viewport.patch
 Patch5: libwnck-2.18.0-above.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=428056
+Patch6: libwnck-2.18.0-property-leak.patch
 
 %description
 
@@ -63,6 +65,7 @@
 %patch3 -p1 -b .appearance
 %patch4 -p1 -b .viewport
 %patch5 -p1 -b .above
+%patch6 -p1 -b .property-leak
 
 %build
 
@@ -101,6 +104,9 @@
 %{_datadir}/gtk-doc/html/libwnck
 
 %changelog
+* Tue Apr 10 2007 Matthias Clasen <mclasen at redhat.com> - 2.18.0-3
+- Plug a small memory leak
+
 * Wed Mar 28 2007 Kristian Høgsberg <krh at redhat.com> - 2.18.0-2
 - Add compiz integration patches from GNOME #352383:
    - libwnck-2.18.0-appearance.patch




More information about the fedora-cvs-commits mailing list