diff options
-rw-r--r-- | plugins/Toaster/src/toast_event_handler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Toaster/src/toast_event_handler.cpp b/plugins/Toaster/src/toast_event_handler.cpp index 81fd2aae1d..305ca120f7 100644 --- a/plugins/Toaster/src/toast_event_handler.cpp +++ b/plugins/Toaster/src/toast_event_handler.cpp @@ -15,7 +15,8 @@ ToastEventHandler::ToastEventHandler(_In_ ToastHandlerData *pData) : _ref(1), _t ToastEventHandler::~ToastEventHandler()
{
- _thd->pPopupProc((HWND)this, UM_FREEPLUGINDATA, 0, 0);
+ if (_thd->pPopupProc)
+ _thd->pPopupProc((HWND)this, UM_FREEPLUGINDATA, 0, 0);
mir_cslock lck(csNotifications);
lstNotifications.remove(_thd->tstNotification);
|