diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-17 12:04:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-17 12:04:21 +0000 |
commit | fe4e211fe45a0b04190d06dbf34fa13883df871a (patch) | |
tree | 04ac31b85c5107e35af6903492e3f0db08119e28 /plugins/MenuItemEx/src | |
parent | 93bbcf1646e427be610273ae977a349705dcf39c (diff) |
more memory fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@4072 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MenuItemEx/src')
-rw-r--r-- | plugins/MenuItemEx/src/main.cpp | 9 |
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;
}
|