summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgdialog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-05-03 22:57:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-03 22:57:37 +0300
commit8f90d307468f43f117cb5ca826187105ca5e1279 (patch)
tree07284a97f1da870c22d79cf6092b5570b0919a52 /plugins/Scriver/src/msgdialog.cpp
parente36fec231359220bf3af8bb8c1957078dd046f4e (diff)
Scriver: fix for memory corruption
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp5
1 files changed, 5 insertions, 0 deletions
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) {