From 2f6ba7534721d643fca84bfce80712daa4fffa3d Mon Sep 17 00:00:00 2001 From: AndersBroman Date: Thu, 2 Mar 2017 16:17:56 +0100 Subject: Use glib-compat Change-Id: I510af18d433c4db360243dda72260e59eb84355f Reviewed-on: https://code.wireshark.org/review/20336 Reviewed-by: Anders Broman --- epan/tap.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'epan/tap.c') diff --git a/epan/tap.c b/epan/tap.c index 77e6ffcaa7..87f46aca38 100644 --- a/epan/tap.c +++ b/epan/tap.c @@ -40,6 +40,7 @@ #include #include #include /* ws_g_warning */ +#include static gboolean tapping_is_active=FALSE; @@ -772,12 +773,7 @@ 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 */ } -- cgit v1.2.1