From 4c506f7bcb8651fa2364d324b395e33171e6352d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 29 Dec 2015 17:50:16 +0000 Subject: Toaster: code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@15965 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Toaster/src/services.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'plugins/Toaster/src/services.cpp') diff --git a/plugins/Toaster/src/services.cpp b/plugins/Toaster/src/services.cpp index 16c89edcb1..100a2387cf 100644 --- a/plugins/Toaster/src/services.cpp +++ b/plugins/Toaster/src/services.cpp @@ -181,9 +181,7 @@ static INT_PTR UnRegisterClass(WPARAM, LPARAM lParam) void CleanupClasses() { for (auto it = mp_Classes.begin(); it != mp_Classes.end(); ++it) - { delete it->second; - } mp_Classes.clear(); } @@ -246,9 +244,7 @@ static INT_PTR HideToast(WPARAM, LPARAM lParam) { ToastNotification* pNotification = reinterpret_cast(lParam); if (lstNotifications.getIndex(pNotification) != -1) - { lstNotifications.remove(pNotification); - } return 0; } void __stdcall HideAllToasts(void*) -- cgit v1.2.3