tvb_free() can (now) be called from plugins on Windows
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 14 Dec 2011 18:33:00 +0000 (18:33 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 14 Dec 2011 18:33:00 +0000 (18:33 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40201 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/asn1/packet-asn1.c

index 995e333d0b59bff8655aba89c9770663d5a29ce6..159608a28d087cd6805724d61eecb51cd3b06c56 100644 (file)
@@ -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);