summaryrefslogtreecommitdiff
path: root/openbox/prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/prompt.c')
-rw-r--r--openbox/prompt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/prompt.c b/openbox/prompt.c
index 1aa79d2a..051c993a 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);
}