1
0

Plugin removes its command registrations and webtabs when unloaded.

Fixes #1890.
This commit is contained in:
Mattes D 2015-04-25 14:28:42 +02:00
parent 0bfcd62556
commit b7d1d701b9

View File

@ -63,6 +63,11 @@ void cPluginLua::Close(void)
return;
}
// Remove the command bindings and web tabs:
ClearCommands();
ClearConsoleCommands();
ClearTabs();
// Notify and remove all m_Resettables (unlock the m_CriticalSection while resetting them):
cResettablePtrs resettables;
std::swap(m_Resettables, resettables);