From fe4e211fe45a0b04190d06dbf34fa13883df871a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 17 Mar 2013 12:04:21 +0000 Subject: more memory fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@4072 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MenuItemEx/src/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins/MenuItemEx') 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; } -- cgit v1.2.3