From e0618a6d95dc4ae3e11e7cd83f567cc0c5ffcfb5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 27 Mar 2018 19:18:21 +0300 Subject: fixes #1216 (temporary contacts return back until restart) --- plugins/Dbx_mdbx/src/dbcontacts.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Dbx_mdbx') diff --git a/plugins/Dbx_mdbx/src/dbcontacts.cpp b/plugins/Dbx_mdbx/src/dbcontacts.cpp index ce08f4729c..24faa109fc 100644 --- a/plugins/Dbx_mdbx/src/dbcontacts.cpp +++ b/plugins/Dbx_mdbx/src/dbcontacts.cpp @@ -75,6 +75,9 @@ STDMETHODIMP_(LONG) CDbxMDBX::DeleteContact(MCONTACT contactID) return 1; } + // free cache item + m_cache->FreeCachedContact(contactID); + InterlockedDecrement(&m_contactCount); return 0; } -- cgit v1.2.3