diff options
| author | Dana Jansens <danakj@orodu.net> | 2011-08-02 15:53:42 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2012-09-30 15:03:07 -0400 |
| commit | 34b332c22acb9f7f194eb8de80b5f4a6529e7e16 (patch) | |
| tree | ff46e7563ff06222eca81bcb81db042dcc59f93b /openbox/prompt.c | |
| parent | efc9d9708e3e746a9744a6175a4d3a1259d69991 (diff) | |
Fix prompt cleanup (was not going through the list correctly when freeing items)
Diffstat (limited to 'openbox/prompt.c')
| -rw-r--r-- | openbox/prompt.c | 5 |
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); } |
