summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-10-23 21:09:47 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-10-23 21:09:55 +0300
commitbfdbaf6f3d1ebf0b255a715a0b0d6626e312eaa4 (patch)
tree0524ff373da748b483899e4aead07807a7031cf4 /src/mir_core
parent53e07c1a2bd9ee7b24a65466dd930c694dcd55e7 (diff)
fix for a random crash on exit
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/windowlist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mir_core/src/windowlist.cpp b/src/mir_core/src/windowlist.cpp
index 335e3db5d8..7af092dc1d 100644
--- a/src/mir_core/src/windowlist.cpp
+++ b/src/mir_core/src/windowlist.cpp
@@ -47,9 +47,10 @@ MIR_CORE_DLL(MWindowList) WindowList_Create(void)
return new TWindowList();
}
-MIR_CORE_DLL(void) WindowList_Destroy(MWindowList hList)
+MIR_CORE_DLL(void) WindowList_Destroy(MWindowList &hList)
{
delete hList;
+ hList = nullptr;
}
MIR_CORE_DLL(int) WindowList_Add(MWindowList hList, HWND hwnd, MCONTACT hContact)