From 23a0e8c8cdbb189c19cb660e56f227363d398efa Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 14 Oct 2011 16:42:37 -0400 Subject: [PATCH] Fix a crash on shutdown/reconfigure. Clean up the registered action filters properly. Frees the list and sets the pointer to NULL for empty list. --- openbox/action_filter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbox/action_filter.c b/openbox/action_filter.c index 08276547..feb10def 100644 --- 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, -- 2.34.1