Plugin removes its command registrations and webtabs when unloaded.
Fixes #1890.
This commit is contained in:
parent
0bfcd62556
commit
b7d1d701b9
@ -63,6 +63,11 @@ void cPluginLua::Close(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove the command bindings and web tabs:
|
||||||
|
ClearCommands();
|
||||||
|
ClearConsoleCommands();
|
||||||
|
ClearTabs();
|
||||||
|
|
||||||
// Notify and remove all m_Resettables (unlock the m_CriticalSection while resetting them):
|
// Notify and remove all m_Resettables (unlock the m_CriticalSection while resetting them):
|
||||||
cResettablePtrs resettables;
|
cResettablePtrs resettables;
|
||||||
std::swap(m_Resettables, resettables);
|
std::swap(m_Resettables, resettables);
|
||||||
|
Loading…
Reference in New Issue
Block a user