all repos — openbox @ 34b332c22acb9f7f194eb8de80b5f4a6529e7e16

openbox fork - make it a bit more like ryudo

Fix prompt cleanup (was not going through the list correctly when freeing items)
Dana Jansens danakj@orodu.net
commit

34b332c22acb9f7f194eb8de80b5f4a6529e7e16

parent

efc9d9708e3e746a9744a6175a4d3a1259d69991

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M openbox/prompt.copenbox/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); }