summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/services.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-05 11:43:00 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-05 11:43:00 +0000
commitc266152f2766961031a4938bdd62dad1a2135ab9 (patch)
treede7d899e910ddff54da9290b1b98dbd331ec7b84 /plugins/Toaster/src/services.cpp
parent45143d2f28c27382fbc112a4cefddc02813f1656 (diff)
Toaster: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@15268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/services.cpp')
-rw-r--r--plugins/Toaster/src/services.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Toaster/src/services.cpp b/plugins/Toaster/src/services.cpp
index d2d9148c66..cfb9e3c5c3 100644
--- a/plugins/Toaster/src/services.cpp
+++ b/plugins/Toaster/src/services.cpp
@@ -167,6 +167,7 @@ static INT_PTR UnRegisterClass(WPARAM, LPARAM lParam)
{
delete it->second;
mp_Classes.erase(it);
+ break;
}
}
return 0;
@@ -174,11 +175,11 @@ static INT_PTR UnRegisterClass(WPARAM, LPARAM lParam)
void CleanupClasses()
{
- for (auto it = mp_Classes.begin(); it != mp_Classes.end(); it++)
+ for (auto it = mp_Classes.begin(); it != mp_Classes.end(); ++it)
{
delete it->second;
- mp_Classes.erase(it);
}
+ mp_Classes.clear();
}
static INT_PTR PopupQuery(WPARAM wParam, LPARAM)