diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-07 21:20:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-07 21:20:53 +0000 |
commit | d7844d0b4c8453291bad5c9a02d462b7d0860533 (patch) | |
tree | ca08f8bc2abc8b930891e33bfaf3fdde8d6f1d59 /src/modules/extraicons | |
parent | f8c2ad822cfd7cf7091ac85e3bec5747433646f1 (diff) |
memleak in destroying array of extra icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@14063 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/extraicons')
-rw-r--r-- | src/modules/extraicons/extraicons.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/extraicons/extraicons.cpp b/src/modules/extraicons/extraicons.cpp index 4df022e512..be02a26b87 100644 --- a/src/modules/extraicons/extraicons.cpp +++ b/src/modules/extraicons/extraicons.cpp @@ -534,6 +534,12 @@ void LoadExtraIconsModule() void UnloadExtraIconsModule(void)
{
- for (int i=0; i < registeredExtraIcons.getCount(); i++)
+ for (int k = 0; k < extraIconsBySlot.getCount(); k++) {
+ ExtraIcon *extra = extraIconsBySlot[k];
+ if (extra->getType() == EXTRAICON_TYPE_GROUP)
+ delete extra;
+ }
+
+ for (int i = 0; i < registeredExtraIcons.getCount(); i++)
delete registeredExtraIcons[i];
}
|