From 6512084bf5cb6f40060cb0c9d8cb518b7417e373 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 6 Dec 2015 19:27:52 +0000 Subject: MirLua: added schedule module git-svn-id: http://svn.miranda-ng.org/main/trunk@15821 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'plugins/MirLua/src/mlua.cpp') diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index 5a17246a5f..de7690356e 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -1,8 +1,5 @@ #include "stdafx.h" -//LIST CMLua::Hooks(1, PtrKeySortT); -//LIST CMLua::Events(1, PtrKeySortT); -//LIST CMLua::Services(1, PtrKeySortT); LIST CMLua::HookRefs(1, HandleKeySortT); LIST CMLua::ServiceRefs(1, HandleKeySortT); @@ -65,6 +62,7 @@ void CMLua::Unload() delete script; } + ::KillModuleScheduleTasks(); ::KillModuleMBButtons(); ::KillModuleTTBButton(); @@ -73,12 +71,8 @@ void CMLua::Unload() ::KillModuleHotkeys(hScriptsLangpack); ::KillObjectEventHooks(L); ::KillObjectServices(L); - //KillModuleSubclassing - //CMLua::KillLuaRefs(); - - if (L) - lua_close(L); + lua_close(L); } void CMLua::KillLuaRefs() -- cgit v1.2.3