summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/extraicons/extraicons.cpp8
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];
}