From: Dana Jansens Date: Tue, 2 Aug 2011 19:53:42 +0000 (-0400) Subject: Fix prompt cleanup (was not going through the list correctly when freeing items) X-Git-Tag: release-3.5.1~85 X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=commitdiff_plain;h=34b332c22acb9f7f194eb8de80b5f4a6529e7e16 Fix prompt cleanup (was not going through the list correctly when freeing items) --- diff --git a/openbox/prompt.c b/openbox/prompt.c index 1aa79d2..051c993 100644 --- a/openbox/prompt.c +++ b/openbox/prompt.c @@ -75,11 +75,12 @@ void prompt_startup(gboolean reconfig) void prompt_shutdown(gboolean reconfig) { - GList *it; + GList *it, *next; if (!reconfig) { - for (it = prompt_list; it; it = g_list_next(it)) { + for (it = prompt_list; it; it = next) { ObPrompt *p = it->data; + next = it->next; if (p->cleanup) p->cleanup(p, p->data); }