From daa30830aa1633a950deda06133d7a7d43d1cda8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Feb 2019 16:10:41 +0300 Subject: fixes #1868 (Miranda NG crashes when trying to access message log) --- src/mir_app/src/clcitems.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mir_app') diff --git a/src/mir_app/src/clcitems.cpp b/src/mir_app/src/clcitems.cpp index a50bc7170e..72df88ccc5 100644 --- a/src/mir_app/src/clcitems.cpp +++ b/src/mir_app/src/clcitems.cpp @@ -308,6 +308,7 @@ MIR_APP_DLL(void) Clist_DeleteItemFromTree(HWND hwnd, MCONTACT hItem) if (Clist_FindItem(hwnd, dat, hItem, &contact, &group)) { Clist_RemoveItemFromGroup(hwnd, group, contact, 1); contact->pce = nullptr; + return; } // if we don't have this contact, simply try to update the number of contacts in a group -- cgit v1.2.3