Fix prompt cleanup (was not going through the list correctly when freeing items)
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
openbox/prompt.c
→
openbox/prompt.c
@@ -75,11 +75,12 @@ }
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); }