From db55443c7b6bd0e1454a6b087b04172a7039cd14 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 13 Mar 2025 19:51:36 +0300 Subject: fixes #4921 (Discord: crash on CDiscordProto::OnCommandChannelDeleted) --- protocols/Discord/src/dispatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Discord/src/dispatch.cpp') 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; } } -- cgit v1.2.3