diff options
-rw-r--r-- | src/install.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/install.c b/src/install.c index 30b651b..19a7aec 100644 --- a/src/install.c +++ b/src/install.c @@ -940,7 +940,12 @@ main (int argc, char **argv) } } +#if GLIB_CHECK_VERSION(2,28,0) g_slist_free_full (edit_actions, (GDestroyNotify) dfu_edit_action_free); +#else + g_slist_foreach (edit_actions, (GFunc) dfu_edit_action_free, NULL); + g_slist_free (edit_actions); +#endif g_option_context_free (context); |