diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-28 21:39:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-28 21:39:15 +0300 |
commit | 0bab63af012c9d2da217d13b7a24242710f10f62 (patch) | |
tree | fa648b27c844e4f76fb2f09a6ef925186b346357 /plugins/Toaster/src | |
parent | 7f1cefd853a9ae16584af5ae7cef123836253750 (diff) |
fixes #3077 (crash in Toaster on exit)
Diffstat (limited to 'plugins/Toaster/src')
-rw-r--r-- | plugins/Toaster/src/toast_notification.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp index 3e11ec9a51..040047ff6f 100644 --- a/plugins/Toaster/src/toast_notification.cpp +++ b/plugins/Toaster/src/toast_notification.cpp @@ -28,10 +28,15 @@ ToastNotification::ToastNotification( ToastNotification::~ToastNotification()
{
+ if (_signature != TOAST_SIGNATURE)
+ return;
+
_signature = 0;
if (_pvPopupData != nullptr)
CallPopupProc(UM_FREEPLUGINDATA);
- notifier->Hide(notification.Get());
+
+ if (notification)
+ notifier->Hide(notification.Get());
}
HRESULT ToastNotification::CreateXml(_Outptr_ ABI::Windows::Data::Xml::Dom::IXmlDocument **xml)
|