summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-10-28 21:43:40 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-10-28 21:43:40 +0000
commitb1a7c5b9b7670628e0db3bbc9962b087f5c566f3 (patch)
treeca65dffc8c3078755640a62e6fb3a0813ed984ed
parente024a13a4d7b35e9065bdf0cde5c3770bbe43ee0 (diff)
MirLua: removed another one custom tables
git-svn-id: http://svn.miranda-ng.org/main/trunk@15643 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/MirLua/src/m_protocols.cpp4
-rw-r--r--plugins/MirLua/src/mlua.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp
index 9aa4b4f753..28c6f19ddc 100644
--- a/plugins/MirLua/src/m_protocols.cpp
+++ b/plugins/MirLua/src/m_protocols.cpp
@@ -36,7 +36,7 @@ static int lua_ProtoIterator(lua_State *L)
{
lua_pushinteger(L, (i + 1));
lua_replace(L, lua_upvalueindex(1));
- MapToTable(L, protos[i]);
+ lua_pushlightuserdata(L, protos[i]);
}
else
lua_pushnil(L);
@@ -138,7 +138,7 @@ static int lua_AccountIterator(lua_State *L)
{
lua_pushinteger(L, (i + 1));
lua_replace(L, lua_upvalueindex(1));
- MapToTable(L, accounts[i]);
+ lua_pushlightuserdata(L, accounts[i]);
}
else
lua_pushnil(L);
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp
index 6a54f92592..c55cbe57f7 100644
--- a/plugins/MirLua/src/mlua.cpp
+++ b/plugins/MirLua/src/mlua.cpp
@@ -71,6 +71,8 @@ void CMLua::Unload()
::KillModuleIcons(hScriptsLangpack);
::KillModuleMenus(hScriptsLangpack);
::KillModuleHotkeys(hScriptsLangpack);
+ ::KillObjectEventHooks(L);
+ ::KillObjectServices(L);
CMLua::KillModuleServices();
CMLua::KillModuleEventHooks();
//KillModuleSubclassing