aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/matchbox2/matchbox-panel-2/startup-invalid-access.patch
blob: 66fac2a7102b18e031ccd5800b1b0ad8c9d95c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
http://bugzilla.openedhand.com/show_bug.cgi?id=1791
Index: applets/startup/startup.c
===================================================================
--- applets/startup/startup.c	(revision 2098)
+++ applets/startup/startup.c	(working copy)
@@ -170,16 +170,17 @@
 
         /* handle launchee timeouts */
         while (tmp != NULL) {
+                GList *tmp_next = tmp->next;
                 LaunchItem *item = (LaunchItem *) tmp->data;
                 if ((item->when - t) <= 0) {
-                        applet->launch_list = g_list_remove (tmp, item);
+                        applet->launch_list = g_list_delete_link (applet->launch_list, tmp);
                         g_source_remove (item->timeout_id);
                         free (item->id);
                         free (item);
 
                         break;
                 }
-                tmp = tmp->next;
+                tmp = tmp_next;
         }
 
         if (applet->launch_list == NULL && applet->hourglass_shown) {