Change-Id: If4c35d18db1dc982e981004838e0eabbf4479e78
Reviewed-on: https://code.wireshark.org/review/19653
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
#include "print.h"
#include "capture_dissectors.h"
#include "exported_pdu.h"
+#include "export_object.h"
#ifdef HAVE_LUA
#include <lua.h>
expert_cleanup();
capture_dissector_cleanup();
export_pdu_cleanup();
+ export_object_cleanup();
#ifdef HAVE_LUA
wslua_cleanup();
#endif
g_free(entry);
}
+
+static void
+free_eo_table(gpointer p, gpointer user_data _U_)
+{
+ register_eo_t *table = (register_eo_t*)p;
+ g_free((gpointer)table->tap_listen_str);
+ g_free(table);
+}
+
+void export_object_cleanup(void)
+{
+ g_slist_foreach(registered_eo_tables, free_eo_table, NULL);
+ g_slist_free(registered_eo_tables);
+}
+
/*
* Editor modelines
*
*/
WS_DLL_PUBLIC void eo_free_entry(export_object_entry_t *entry);
+/** Free the export objects table
+ */
+extern void export_object_cleanup(void);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */