From: Dana Jansens Date: Fri, 14 Oct 2011 20:42:37 +0000 (-0400) Subject: Fix a crash on shutdown/reconfigure. Clean up the registered action filters properly. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=23a0e8c8cdbb189c19cb660e56f227363d398efa;p=dana%2Fopenbox.git 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. --- 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,