diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2018-09-02 13:57:40 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2018-09-02 13:57:40 +0300 |
commit | fd5c295d3d51e0a25a298187e9968c8c0c42171b (patch) | |
tree | bf3c0bd3039e58f70039b03ce2bf235d3e659b5c | |
parent | 3e1a3f3000b6db6fe05a51d637264ebe8d14708e (diff) | |
download | metacity-fd5c295d3d51e0a25a298187e9968c8c0c42171b.tar.gz |
prefs: fix cast-function-type warning
-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++) |