diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-07-15 20:14:27 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-07-15 20:14:27 +0000 |
commit | ba3469a33a14a198e36fe7a0728e0aff9b465eb3 (patch) | |
tree | bb6fee867c456aeb1f0d668eb2a61eebaae97ab1 | |
parent | daf68b05d9685e5e9ea9abd828bc05f69cb59650 (diff) |
MirLua: cleanup icons on scripts restart
git-svn-id: http://svn.miranda-ng.org/main/trunk@14573 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/MirLua/src/m_icolib.cpp | 2 | ||||
-rw-r--r-- | plugins/MirLua/src/mlua.cpp | 3 | ||||
-rw-r--r-- | plugins/MirLua/src/version.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_icolib.cpp b/plugins/MirLua/src/m_icolib.cpp index 00411fbf85..171ed373ab 100644 --- a/plugins/MirLua/src/m_icolib.cpp +++ b/plugins/MirLua/src/m_icolib.cpp @@ -17,7 +17,7 @@ static int lua_AddIcon(lua_State *L) si.defaultFile.t = filePath;
si.iDefaultIndex = -IDI_ICON;
- HANDLE res = ::IcoLib_AddIcon(&si);
+ HANDLE res = ::IcoLib_AddIcon(&si, hScriptsLangpack);
lua_pushlightuserdata(L, res);
return 1;
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp index 2fabce2740..61405de928 100644 --- a/plugins/MirLua/src/mlua.cpp +++ b/plugins/MirLua/src/mlua.cpp @@ -59,7 +59,8 @@ void CMLua::Unload() CallService(MS_NETLIB_LOG, (WPARAM)hNetlib, (LPARAM)"Unloading lua engine");
NotifyEventHooks(hUnloadEvent);
-
+
+ ::KillModuleIcons(hScriptsLangpack);
::KillModuleMenus(hScriptsLangpack);
CMLua::KillModuleServices();
CMLua::KillModuleEventHooks();
diff --git a/plugins/MirLua/src/version.h b/plugins/MirLua/src/version.h index 3a38e21e9f..7be6f65f4a 100644 --- a/plugins/MirLua/src/version.h +++ b/plugins/MirLua/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 11
#define __RELEASE_NUM 3
-#define __BUILD_NUM 4
+#define __BUILD_NUM 5
#include <stdver.h>
|