From 2e9f3c5d366eaa7139fc877b5301392166b3f985 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Tue, 3 May 2016 18:40:17 +0200 Subject: tap: change glib functions to wmem. Change-Id: I878ae6b121a669f9b7f4e1e57bc079f0cb44c0bf Reviewed-on: https://code.wireshark.org/review/15270 Petri-Dish: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Evan Huus Reviewed-by: Anders Broman --- plugins/mate/packet-mate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/mate') diff --git a/plugins/mate/packet-mate.c b/plugins/mate/packet-mate.c index 5ece48b188..98267e5d4e 100644 --- a/plugins/mate/packet-mate.c +++ b/plugins/mate/packet-mate.c @@ -327,7 +327,7 @@ extern void proto_reg_handoff_mate(void) { - GString* tap_error = NULL; + gchar* tap_error = NULL; if ( *pref_mate_config_filename != '\0' ) { @@ -354,8 +354,8 @@ proto_reg_handoff_mate(void) (tap_draw_cb) NULL); if ( tap_error ) { - g_warning("mate: couldn't (re)register tap: %s",tap_error->str); - g_string_free(tap_error, TRUE); + g_warning("mate: couldn't (re)register tap: %s", tap_error); + wmem_free(NULL, tap_error); mate_tap_data = 0; return; } -- cgit v1.2.1