summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/toast_notification.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Toaster/src/toast_notification.cpp')
-rw-r--r--plugins/Toaster/src/toast_notification.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp
index 0708be6ec4..2df72af9ad 100644
--- a/plugins/Toaster/src/toast_notification.cpp
+++ b/plugins/Toaster/src/toast_notification.cpp
@@ -28,6 +28,8 @@ ToastNotification::ToastNotification(
ToastNotification::~ToastNotification()
{
+ if (_pvPopupData != nullptr)
+ CallPopupProc(UM_FREEPLUGINDATA);
notifier->Hide(notification.Get());
}
@@ -106,7 +108,6 @@ HRESULT ToastNotification::OnFail(_In_ ABI::Windows::UI::Notifications::IToastNo
void ToastNotification::Destroy()
{
- CallPopupProc(UM_FREEPLUGINDATA);
mir_cslock lck(csNotifications);
lstNotifications.remove(this);
} \ No newline at end of file