summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-05-25 20:23:58 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-05-25 20:23:58 +0300
commitbcf4329b3535ee0dc5dea708f14dfb9bf4ab4fc4 (patch)
treecdfe29cd0464c44a1e81634a52be66b4217d5586 /protocols/JabberG/src
parentb7928747cf0f8e53a01ee4628c58559862a9a689 (diff)
Jabber: fix for possible memory corruption
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}