From 8f90d307468f43f117cb5ca826187105ca5e1279 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 3 May 2017 22:57:37 +0300 Subject: Scriver: fix for memory corruption --- plugins/Scriver/src/msgdialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/Scriver/src/msgdialog.cpp') diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index e692c47a26..7af1819963 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -382,6 +382,11 @@ void CSrmmWindow::OnDestroy() if (m_nTypeMode == PROTOTYPE_SELFTYPING_ON) NotifyTyping(PROTOTYPE_SELFTYPING_OFF); + if (m_hXStatusTip != nullptr) { + DestroyWindow(m_hXStatusTip); + m_hXStatusTip = nullptr; + } + IcoLib_ReleaseIcon(m_hStatusIcon); m_hStatusIcon = nullptr; IcoLib_ReleaseIcon(m_hStatusIconBig); m_hStatusIconBig = nullptr; if (m_hStatusIconOverlay != nullptr) { -- cgit v1.2.3