summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-13 19:51:36 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-13 19:51:36 +0300
commitdb55443c7b6bd0e1454a6b087b04172a7039cd14 (patch)
treeb2db98f65f1d7a86fb16a3409cbbba617fcb960b
parenta5ae88c84238b344772f5dd1c4905071ebe6cd05 (diff)
fixes #4921 (Discord: crash on CDiscordProto::OnCommandChannelDeleted)
-rw-r--r--protocols/Discord/src/dispatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index 243ff79fe5..1e7c6be758 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -124,7 +124,7 @@ void CDiscordProto::OnCommandChannelDeleted(const JSONNode &pRoot)
else {
CDiscordGuild *pGuild = FindGuild(guildId);
if (pGuild != nullptr) {
- db_delete_contact(pUser->si->hContact);
+ db_delete_contact(pUser->hContact);
pUser->si = nullptr;
}
}