diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-05-03 18:40:17 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-06-17 15:38:03 +0000 |
commit | 2e9f3c5d366eaa7139fc877b5301392166b3f985 (patch) | |
tree | ac2d04b7cc1b8d6c8962d437584e351fcf1bf450 /ui/tap-rlc-graph.c | |
parent | 2aa55a387a87cd4f740aea661ca1ca535cd2e392 (diff) |
tap: change glib functions to wmem.
Change-Id: I878ae6b121a669f9b7f4e1e57bc079f0cb44c0bf
Reviewed-on: https://code.wireshark.org/review/15270
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/tap-rlc-graph.c')
-rw-r--r-- | ui/tap-rlc-graph.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/tap-rlc-graph.c b/ui/tap-rlc-graph.c index e5bb6cfeb5..38980f991a 100644 --- a/ui/tap-rlc-graph.c +++ b/ui/tap-rlc-graph.c @@ -114,7 +114,7 @@ rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf, epan_dissect_t edt; dfilter_t *sfcode; - GString *error_string; + gchar *error_string; nstime_t rel_ts; /* Initialised to no known channels */ th_t th = {0, {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}}; @@ -139,8 +139,8 @@ rlc_lte_tap_info *select_rlc_lte_session(capture_file *cf, error_string = register_tap_listener("rlc-lte", &th, NULL, 0, NULL, tap_lte_rlc_packet, NULL); if (error_string){ fprintf(stderr, "wireshark: Couldn't register rlc_lte_graph tap: %s\n", - error_string->str); - g_string_free(error_string, TRUE); + error_string); + wmem_free(NULL, error_string); exit(1); /* XXX: fix this */ } @@ -250,7 +250,7 @@ gboolean rlc_graph_segment_list_get(capture_file *cf, struct rlc_graph *g, gbool char **err_string) { struct rlc_segment current; - GString *error_string; + gchar *error_string; g_log(NULL, G_LOG_LEVEL_DEBUG, "graph_segment_list_get()"); @@ -283,8 +283,8 @@ gboolean rlc_graph_segment_list_get(capture_file *cf, struct rlc_graph *g, gbool error_string = register_tap_listener("rlc-lte", g, "rlc-lte", 0, NULL, rlc_lte_tap_for_graph_data, NULL); if (error_string) { fprintf(stderr, "wireshark: Couldn't register rlc_graph tap: %s\n", - error_string->str); - g_string_free(error_string, TRUE); + error_string); + wmem_free(NULL, error_string); exit(1); /* XXX: fix this */ } cf_retap_packets(cf); |