gnome-applets r10948 - trunk/gswitchit
- From: callum svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-applets r10948 - trunk/gswitchit
- Date: Tue, 2 Sep 2008 10:00:26 +0000 (UTC)
Author: callum
Date: Tue Sep 2 10:00:26 2008
New Revision: 10948
URL: http://svn.gnome.org/viewvc/gnome-applets?rev=10948&view=rev
Log:
Fix a memory leak, bug 549890.
Modified:
trunk/gswitchit/ChangeLog
trunk/gswitchit/gswitchit-applet.c
Modified: trunk/gswitchit/gswitchit-applet.c
==============================================================================
--- trunk/gswitchit/gswitchit-applet.c (original)
+++ trunk/gswitchit/gswitchit-applet.c Tue Sep 2 10:00:26 2008
@@ -151,14 +151,17 @@
/* 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]