summaryrefslogtreecommitdiff
path: root/plugins/MenuItemEx/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MenuItemEx/src/main.cpp')
-rw-r--r--plugins/MenuItemEx/src/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp
index e5dbad48c8..66579bdfb0 100644
--- a/plugins/MenuItemEx/src/main.cpp
+++ b/plugins/MenuItemEx/src/main.cpp
@@ -1279,7 +1279,6 @@ static int PluginInit(WPARAM wparam,LPARAM lparam)
return 0;
}
-
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfoEx;
@@ -1296,8 +1295,12 @@ extern "C" __declspec(dllexport) int Load(void)
extern "C" __declspec(dllexport) int Unload(void)
{
- DestroyIcon( hIcon[3] );
- DestroyIcon( hIcon[4] );
+ for (int i=0; i < saveStatuses.getCount(); i++)
+ delete saveStatuses[i];
+ saveStatuses.destroy();
+
+ DestroyIcon(hIcon[3]);
+ DestroyIcon(hIcon[4]);
return 0;
}