diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-28 20:05:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-28 20:05:11 +0000 |
commit | 23af22967ac679d10ea565b69e6374443f01324e (patch) | |
tree | 34092cc4200cba7cc5014927d42f08bcd780db83 /plugins/MirLua/src/mlua.cpp | |
parent | 9eea36312cc4a3a215fe147c215d7afd198ab054 (diff) |
MirLua: added removing hooks/services on reloading
git-svn-id: http://svn.miranda-ng.org/main/trunk@14433 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index f42f0fecdb..90c5e302c6 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -41,12 +41,13 @@ void CMLua::Unload() {
mir_writeLogT(hLogger, _T("Unloading lua engine\n"));
- if (L)
- lua_close(L);
KillModuleMenus(hScriptsLangpack);
+ KillModuleServices();
+ KillModuleEventHooks();
//KillModuleSubclassing
- //KillModuleServices
- //KillModuleEventHooks
+
+ if (L)
+ lua_close(L);
}
void CMLua::Reload()
|