aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/asn1
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-12-14 18:33:00 +0000
committerBill Meier <wmeier@newsguy.com>2011-12-14 18:33:00 +0000
commitd57950889e0ca8541627bc97e60290b70277a6d7 (patch)
tree7e3f03b0add62d2ecbaf3ecf3171671bdca863a6 /plugins/asn1
parent418863f88d93762c6d159a2148a2e2346ea5988c (diff)
tvb_free() can (now) be called from plugins on Windows
svn path=/trunk/; revision=40201
Diffstat (limited to 'plugins/asn1')
-rw-r--r--plugins/asn1/packet-asn1.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index 995e333d0b..159608a28d 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -2921,12 +2921,14 @@ read_asn1_type_table(const char *filename)
get_values();
- g_node_destroy(asn1_nodes); asn1_nodes = 0;
-#ifndef _WIN32 /* tvb_free not yet exported to plugins... */
+ g_node_destroy(asn1_nodes);
+ asn1_nodes = NULL;
+
tvb_free(asn1_desc);
-#endif
- asn1_desc = 0;
- g_free(data); data = 0;
+ asn1_desc = NULL;
+
+ g_free(data);
+ data = NULL;
showGNodes(data_nodes, 0);