summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginLua.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index ddd3398a5..4c98b8d26 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -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);