summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-09-10 03:23:51 -0700
committerGeorge Hazan <ghazan@miranda.im>2022-09-10 03:23:51 -0700
commit6847777dfa98b0436a642277b757c3b09717817c (patch)
treefd042ecc582eb86a4ac29a3dfb50a31453a4e5da /plugins
parentf9bfb22761ce245be0681bec065d04388f586b72 (diff)
no need to export Miranda's offal to the outside world
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MirLua/src/environment.cpp6
-rw-r--r--plugins/MirLua/src/plugin.cpp5
-rw-r--r--plugins/StatusManager/src/stdafx.h2
3 files changed, 3 insertions, 10 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);
diff --git a/plugins/MirLua/src/plugin.cpp b/plugins/MirLua/src/plugin.cpp
index 70cd628fab..9376355a7f 100644
--- a/plugins/MirLua/src/plugin.cpp
+++ b/plugins/MirLua/src/plugin.cpp
@@ -76,11 +76,6 @@ void CMPlugin::UnloadLua()
lua_close(L);
}
-
- KillModuleIcons(this);
- KillModuleSounds(this);
- KillModuleMenus(this);
- KillModuleHotkeys(this);
}
void CMPlugin::ReloadLuaScripts()
diff --git a/plugins/StatusManager/src/stdafx.h b/plugins/StatusManager/src/stdafx.h
index 4d348ca203..03afaef415 100644
--- a/plugins/StatusManager/src/stdafx.h
+++ b/plugins/StatusManager/src/stdafx.h
@@ -40,7 +40,7 @@ struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
- bool bMirandaLoaded;
+ bool bMirandaLoaded = false;
int Load() override;
int Unload() override;