X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fprompt.c;fp=openbox%2Fprompt.c;h=051c993af45af5732d7e117f964884b41a169618;hb=34b332c22acb9f7f194eb8de80b5f4a6529e7e16;hp=1aa79d2a122e8a57f2b0859bf4815ca912da66bf;hpb=efc9d9708e3e746a9744a6175a4d3a1259d69991;p=chaz%2Fopenbox 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); }