void idaapi term(void) { // delete all forms delete Form1; Form1 = NULL; // restore the dll global variables TerminatePlugin(); }
Plugin::~Plugin() { TerminatePlugin(m_pluginInterface); m_callbacks.clear(); if (m_pluginInterface) { delete m_pluginInterface; m_pluginInterface = nullptr; } if (m_module.IsOpen()) { m_module.Close(); } }