summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2011-08-02 15:53:42 -0400
committerDana Jansens <danakj@orodu.net>2012-09-30 15:03:07 -0400
commit34b332c22acb9f7f194eb8de80b5f4a6529e7e16 (patch)
treeff46e7563ff06222eca81bcb81db042dcc59f93b /openbox
parentefc9d9708e3e746a9744a6175a4d3a1259d69991 (diff)
Fix prompt cleanup (was not going through the list correctly when freeing items)
Diffstat (limited to 'openbox')
-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);
}