summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_menus.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-10 13:43:07 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-10 13:43:07 +0000
commit22ecdc28ebf053a6b335b802949f4f774af97d26 (patch)
tree980abced379dcc5a3c0021eac4ccdd20358387bc /plugins/MirLua/src/mlua_menus.cpp
parent61eb66b5f8be46f1e5fe148aefb0364e3ceb9d59 (diff)
MirLua:
- removed unwanted paths to script searching - fixed crash on event hook/service call - code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@14103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_menus.cpp')
-rw-r--r--plugins/MirLua/src/mlua_menus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/mlua_menus.cpp b/plugins/MirLua/src/mlua_menus.cpp
index d3078fc5b3..e59bc33a0f 100644
--- a/plugins/MirLua/src/mlua_menus.cpp
+++ b/plugins/MirLua/src/mlua_menus.cpp
@@ -51,8 +51,6 @@ static luaL_Reg menusLib[] =
int luaopen_m_menus(lua_State *L)
{
- //luaL_newlib(L, CMLua::clistLib);
-
lua_getglobal(L, "M");
luaL_checktype(L, -1, LUA_TTABLE);
@@ -60,5 +58,7 @@ int luaopen_m_menus(lua_State *L)
luaL_setfuncs(L, menusLib, 0);
lua_setfield(L, -2, "Menus");
+ lua_pop(L, 1);
+
return 1;
}