From bc287d3e214f683d28097e155ed76f4f3baad205 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 May 2024 14:57:26 +0300 Subject: =?UTF-8?q?fixes=20#4414=20(=D0=9D=D0=B5=D0=B2=D0=BE=D0=B7=D0=BC?= =?UTF-8?q?=D0=BE=D0=B6=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B0=D0=BA=D1=82,=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BA=D0=B0=20=D0=BE=D0=BD=20=D0=BC=D0=B8=D0=B3=D0=B0?= =?UTF-8?q?=D0=B5=D1=82=20=D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B5=D0=BC?= =?UTF-8?q?=20"=D0=BA=D0=BE=D0=BD=D1=82=D0=B0=D0=BA=D1=82=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=8F=D0=B2=D0=B8=D0=BB=D1=81=D1=8F=20=D0=B2=20=D1=81=D0=B5?= =?UTF-8?q?=D1=82=D0=B8")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/clistevents.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mir_app/src/clistevents.cpp b/src/mir_app/src/clistevents.cpp index 6cecda84d5..3d38008d19 100644 --- a/src/mir_app/src/clistevents.cpp +++ b/src/mir_app/src/clistevents.cpp @@ -302,7 +302,8 @@ MIR_APP_DLL(CListEvent *) Clist_GetEvent(MCONTACT hContact, int idx) int EventsProcessContactDoubleClick(MCONTACT hContact) { if (auto *pEvent = Clist_GetEvent(hContact, 0)) { - CallService(pEvent->pszService, 0, (LPARAM)pEvent); + if (CallService(pEvent->pszService, 0, (LPARAM)pEvent) == CALLSERVICE_NOTFOUND) + return 1; // if the event is still alive, free it if (g_cliEvents.indexOf(pEvent)) -- cgit v1.2.3