diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-01 14:06:49 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-01 14:06:49 +0000 |
commit | e41da319418808d832e088c4c0b09ffaf8cc144e (patch) | |
tree | 00965849dae062375e4ae2c67e68f8aabc7c5ba3 /plugins/MirLua/src/mlua_script.cpp | |
parent | 014e23323d6dc79605da8ebad1c357176ede9122 (diff) |
MirLua: some changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@16207 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_script.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_script.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index 3023d8c71e..e1adc52ea3 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -18,7 +18,8 @@ CMLuaScript::CMLuaScript(lua_State *L, const TCHAR *path) CMLuaScript::~CMLuaScript()
{
- mir_free(this->moduleName);
+ mir_free(moduleName);
+ mir_free(filePath);
}
const char* CMLuaScript::GetModuleName() const
@@ -49,6 +50,13 @@ bool CMLuaScript::Load() return false;
}
+ if (false) // under construction
+ {
+ // setting other enviroment to script
+ lua_newtable(L);
+ lua_setupvalue(L, -2, 1);
+ }
+
if (luaM_pcall(L, 0, 1))
return false;
|