projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca408b7
)
Fix a crash on shutdown/reconfigure. Clean up the registered action filters properly.
author
Dana Jansens
<danakj@orodu.net>
Fri, 14 Oct 2011 20:42:37 +0000
(16:42 -0400)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 30 Sep 2012 16:01:04 +0000
(12:01 -0400)
Frees the list and sets the pointer to NULL for empty list.
openbox/action_filter.c
patch
|
blob
|
history
diff --git
a/openbox/action_filter.c
b/openbox/action_filter.c
index 0827654778796851c1989b38b57863b784b21485..feb10def1053a0954d669aed45df62103d548d93 100644
(file)
--- a/
openbox/action_filter.c
+++ b/
openbox/action_filter.c
@@
-56,7
+56,8
@@
void action_filter_shutdown(gboolean reconfig)
for (it = registered; it; it = g_slist_next(it))
action_filter_unregister(it->data);
- g_slist_free(it);
+ g_slist_free(registered);
+ registered = NULL;
}
gboolean action_filter_register(const gchar *name,