diff options
author | George Hazan <george.hazan@gmail.com> | 2023-05-25 20:23:58 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-05-25 20:23:58 +0300 |
commit | bcf4329b3535ee0dc5dea708f14dfb9bf4ab4fc4 (patch) | |
tree | cdfe29cd0464c44a1e81634a52be66b4217d5586 /protocols/JabberG/src | |
parent | b7928747cf0f8e53a01ee4628c58559862a9a689 (diff) |
Jabber: fix for possible memory corruption
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_thread.cpp | 2 |
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);
}
|