diff options
author | George Hazan <ghazan@miranda.im> | 2019-08-23 17:21:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-08-23 17:21:09 +0300 |
commit | 6a467d375c8c8313d2502c31e693c6a0ff094915 (patch) | |
tree | a8901c1a9061d05c09377c7c1c6801f13ac021eb /src/mir_app | |
parent | bc20220a8748a935e82eebf95999f85067f214bd (diff) |
let's get rid finally of these crashes with contact removal...
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/clcitems.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/clcitems.cpp b/src/mir_app/src/clcitems.cpp index 006b36d6ae..4dba92786a 100644 --- a/src/mir_app/src/clcitems.cpp +++ b/src/mir_app/src/clcitems.cpp @@ -25,6 +25,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" #include "clc.h" +static ClcCacheEntry nullpce = {}; + // routines for managing adding/removal of items in the list, including sorting ClcContact* fnAddItemToGroup(ClcGroup *group, int iAboveItem) @@ -307,7 +309,7 @@ MIR_APP_DLL(void) Clist_DeleteItemFromTree(HWND hwnd, MCONTACT hItem) ClcContact *contact; if (Clist_FindItem(hwnd, dat, hItem, &contact, &group)) { Clist_RemoveItemFromGroup(hwnd, group, contact, 1); - contact->pce = nullptr; + contact->pce = &nullpce; return; } |