From bcf4329b3535ee0dc5dea708f14dfb9bf4ab4fc4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 25 May 2023 20:23:58 +0300 Subject: Jabber: fix for possible memory corruption --- protocols/JabberG/src/jabber_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index fcf189bc13..5aebee770e 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -268,7 +268,7 @@ void CJabberProto::ServerThread(JABBER_CONN_DATA *pParam) LISTFOREACH(i, this, LIST_CHATROOM) if (auto *item = ListGetItemPtrFromIndex(i)) { if (item->si) - item->si->arEvents.destroy(); + Chat_EmptyHistory(item->si); GcQuit(item, 0, nullptr); } -- cgit v1.2.3