From bfdbaf6f3d1ebf0b255a715a0b0d6626e312eaa4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 23 Oct 2017 21:09:47 +0300 Subject: fix for a random crash on exit --- src/mir_core/src/windowlist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mir_core') 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) -- cgit v1.2.3