diff options
-rw-r--r-- | src/core/prefs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c index 7ce0028c..613e35b7 100644 --- a/src/core/prefs.c +++ b/src/core/prefs.c @@ -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++) |