diff options
author | George Hazan <ghazan@miranda.im> | 2022-09-10 03:23:51 -0700 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-09-10 03:23:51 -0700 |
commit | 6847777dfa98b0436a642277b757c3b09717817c (patch) | |
tree | fd042ecc582eb86a4ac29a3dfb50a31453a4e5da /plugins/MirLua/src/environment.cpp | |
parent | f9bfb22761ce245be0681bec065d04388f586b72 (diff) |
no need to export Miranda's offal to the outside world
Diffstat (limited to 'plugins/MirLua/src/environment.cpp')
-rw-r--r-- | plugins/MirLua/src/environment.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/MirLua/src/environment.cpp b/plugins/MirLua/src/environment.cpp index 2c34af11bd..7d8319746d 100644 --- a/plugins/MirLua/src/environment.cpp +++ b/plugins/MirLua/src/environment.cpp @@ -5,6 +5,7 @@ extern PLUGININFOEX pluginInfoEx; EXTERN_C MIR_APP_DLL(void) RegisterPlugin(CMPluginBase *pPlugin); +EXTERN_C MIR_APP_DLL(void) UnregisterPlugin(CMPluginBase *pPlugin); CMLuaEnvironment::CMLuaEnvironment(lua_State *L) : CMPluginBase(nullptr, pluginInfoEx), L(L) @@ -15,10 +16,7 @@ CMLuaEnvironment::CMLuaEnvironment(lua_State *L) : int CMLuaEnvironment::Unload() { - KillModuleIcons(this); - KillModuleSounds(this); - KillModuleMenus(this); - KillModuleHotkeys(this); + ::UnregisterPlugin(this); KillObjectEventHooks(this); KillObjectServices(this); |