Commit fd5c295d authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

prefs: fix cast-function-type warning

parent 3e1a3f30
......@@ -1305,8 +1305,7 @@ update_binding (MetaKeyPref *binding,
/* Okay, so, we're about to provide a new list of key combos for this
* action. Delete any pre-existing list.
g_slist_foreach (binding->bindings, (GFunc) g_free, NULL);
g_slist_free (binding->bindings);
g_slist_free_full (binding->bindings, g_free);
binding->bindings = NULL;
for (i = 0; strokes && strokes[i]; i++)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment