From ba3469a33a14a198e36fe7a0728e0aff9b465eb3 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 15 Jul 2015 20:14:27 +0000 Subject: MirLua: cleanup icons on scripts restart git-svn-id: http://svn.miranda-ng.org/main/trunk@14573 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_icolib.cpp | 2 +- plugins/MirLua/src/mlua.cpp | 3 ++- plugins/MirLua/src/version.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins') 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 -- cgit v1.2.3