rpms/gnome-applets/devel keyboard-applet-leak.patch, NONE, 1.1 gnome-applets.spec, 1.292, 1.293

Matthias Clasen mclasen at fedoraproject.org
Sat Aug 30 01:34:14 UTC 2008


Author: mclasen

Update of /cvs/extras/rpms/gnome-applets/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16047

Modified Files:
	gnome-applets.spec 
Added Files:
	keyboard-applet-leak.patch 
Log Message:
plug a memory leak


keyboard-applet-leak.patch:

--- NEW FILE keyboard-applet-leak.patch ---
diff -up gnome-applets-2.23.90/gswitchit/gswitchit-applet.c.keyboard-applet-leak gnome-applets-2.23.90/gswitchit/gswitchit-applet.c
--- gnome-applets-2.23.90/gswitchit/gswitchit-applet.c.keyboard-applet-leak	2008-08-29 21:29:30.000000000 -0400
+++ gnome-applets-2.23.90/gswitchit/gswitchit-applet.c	2008-08-29 21:29:34.000000000 -0400
@@ -151,14 +151,17 @@ GSwitchItAppletSetBackground (PanelApple
 
 	/* go down */
 	if (GTK_IS_CONTAINER (w)) {
-		GList *child =
+                GList *child;
+		GList *children =
 		    gtk_container_get_children (GTK_CONTAINER (w));
+		child = children;
 		while (child != NULL) {
 			GSwitchItAppletSetBackground (applet,
 						      GTK_WIDGET (child->
 								  data));
 			child = child->next;
 		}
+		g_list_free (children);
 	}
 }
 


Index: gnome-applets.spec
===================================================================
RCS file: /cvs/extras/rpms/gnome-applets/devel/gnome-applets.spec,v
retrieving revision 1.292
retrieving revision 1.293
diff -u -r1.292 -r1.293
--- gnome-applets.spec	23 Aug 2008 03:09:38 -0000	1.292
+++ gnome-applets.spec	30 Aug 2008 01:33:44 -0000	1.293
@@ -35,7 +35,7 @@
 Summary:        Small applications for the GNOME panel
 Name:		gnome-applets
 Version:	2.23.90
-Release: 	1%{?dist}
+Release: 	2%{?dist}
 Epoch:          1
 License:	GPLv2+ and GFDL
 Group:          User Interface/Desktops
@@ -64,6 +64,9 @@
 # do the nullapplet dance for battstat
 Patch40:	gnome-applets-null-battstat.patch
 
+# http://bugzilla.gnome.org/show_bug.cgi?id=549890
+Patch41:	keyboard-applet-leak.patch
+
 BuildRequires:  glib2-devel >= %{glib2_version}
 BuildRequires:  gtk2-devel >= %{gtk2_version}
 BuildRequires:  libgnomeui-devel >= %{libgnomeui_version}
@@ -149,6 +152,7 @@
 %patch33 -p1 -b .node-leak
 %patch39 -p1 -b .gweather-network
 %patch40 -p1 -b .battstat-null
+%patch41 -p1 -b .keyboard-applet-leak
 
 # We don't ship gnome-system-tools
 rm -rf modemlights
@@ -308,6 +312,9 @@
 %{_datadir}/PolicyKit/policy/org.gnome.cpufreqselector.policy
 
 %changelog
+* Fri Aug 29 2008 Matthias Clasen <mclasen at redhat.com> - 1:2.23.90-2
+- Plug a memory leak in the keyboard applet
+
 * Fri Aug 22 2008 Matthias Clasen <mclasen at redhat.com> - 1:2.23.90-1
 - Update to 2.23.90
 




More information about the fedora-extras-commits mailing list