blob: 804a93fb6ce1cb15f71b22a97f1ca50dd5f6716f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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);
}
}
|