diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-22 14:50:15 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-22 14:50:15 +0000 |
commit | f84128a1886b1154beff66cf13314bdfc412bed0 (patch) | |
tree | 2958c1ed544c2d61cb1bc3d2bb990d8109bcbce1 /plugins/MirLua/src/mlua.cpp | |
parent | 631e22caadf37a547bafccc0f90251621b0bd987 (diff) |
MirLua: added logging to scripts loader
git-svn-id: http://svn.miranda-ng.org/main/trunk@14329 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index c90d120006..c73d259cf9 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -2,12 +2,16 @@ CMLua::CMLua() : L(NULL)
{
+ console = new CMLuaConsole(L);
+
Load();
}
CMLua::~CMLua()
{
Unload();
+
+ delete console;
}
void CMLua::Load()
@@ -25,15 +29,12 @@ void CMLua::Load() MUUID muidLast = MIID_LAST;
hScriptsLangpack = GetPluginLangId(muidLast, 0);
- console = new CMLuaConsole(L);
-
CLuaModuleLoader::Load(L);
CLuaScriptLoader::Load(L);
}
void CMLua::Unload()
{
- delete console;
if (L)
lua_close(L);
KillModuleMenus(hScriptsLangpack);
|