aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tap.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2017-02-16 16:13:41 +0100
committerAnders Broman <a.broman58@gmail.com>2017-02-16 21:03:44 +0000
commit16c3ecbd4c903815f4797f4f69daff98e9cb8807 (patch)
treebbe1541da5bf02d948674bdfe8f375fa8b9fa52d /epan/tap.c
parent14e19128dca1b318896ab7768d4527723dbefd17 (diff)
g_slist_free_full requires glib 2.28
Change-Id: I4f9ce7f65da0349b962f6be317635c5acb2daf73 Reviewed-on: https://code.wireshark.org/review/20148 Petri-Dish: Anders Broman <a.broman58@gmail.com> Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/tap.c')
-rw-r--r--epan/tap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/tap.c b/epan/tap.c
index 3d61203587..77e6ffcaa7 100644
--- a/epan/tap.c
+++ b/epan/tap.c
@@ -772,8 +772,13 @@ void tap_cleanup(void)
}
#ifdef HAVE_PLUGINS
+#if GLIB_CHECK_VERSION(2, 28, 0)
g_slist_free_full(tap_plugins, tap_plugin_destroy);
+#else
+ g_slist_foreach(tap_plugins, (GFunc)tap_plugin_destroy, NULL);
+ g_slist_free(tap_plugins);
#endif
+#endif /* HAVE_PLUGINS */
}
/*