summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-27 16:10:41 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-27 16:10:41 +0300
commitdaa30830aa1633a950deda06133d7a7d43d1cda8 (patch)
treebdd0d21d6b761ea2083b77599d2984960cbd6758 /src/mir_app
parentcf5d89144da7ceed41fe9a45ed61c872452639a4 (diff)
fixes #1868 (Miranda NG crashes when trying to access message log)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/clcitems.cpp1
1 files changed, 1 insertions, 0 deletions
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