diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/windowlist.cpp | 3 |
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)
|