Example #1
0
void idaapi term(void)
{
  // delete all forms
  delete Form1;
  Form1 = NULL;
  // restore the dll global variables
  TerminatePlugin();
}
Example #2
0
Plugin::~Plugin()
{
	TerminatePlugin(m_pluginInterface);
	
	m_callbacks.clear();

	if (m_pluginInterface)
	{
		delete m_pluginInterface;
		m_pluginInterface = nullptr;
	}

	if (m_module.IsOpen())
	{
		m_module.Close();
	}
}