diff options
author | Evan Huus <eapache@gmail.com> | 2014-10-13 12:08:43 -0400 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-10-13 16:09:47 +0000 |
commit | 8fb74b4a6847990aab841d3eaf43cd2d9669cd3b (patch) | |
tree | 2b29a11edf39337a435f5ebc619a8ae50cabcc81 /extcap.c | |
parent | 4f37f554f1de15c25e4e11cad7ad1bca55bfa897 (diff) |
extcap: remove use of g_list_free_full
It requires a newer glib than we support
Change-Id: Id8f14d4188a9ba55e0a5196bb877e2fe6a0c8d3f
Reviewed-on: https://code.wireshark.org/review/4652
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -342,6 +342,11 @@ extcap_interface_list(char **err_str) { return ret; } +static void g_free_1(gpointer data, gpointer user_data _U_) +{ + g_free(data); +} + static void extcap_free_if_configuration(GList *list) { GList *elem; @@ -355,7 +360,8 @@ static void extcap_free_if_configuration(GList *list) } arg_list = g_list_first((GList *)elem->data); - g_list_free_full(arg_list, g_free); + g_list_foreach(arg_list, g_free_1, NULL); + g_list_free(arg_list); } g_list_free(list); } |