From 1bd5a45035d2819c5314ba1c8a889a25f3607c83 Mon Sep 17 00:00:00 2001 From: p0358 Date: Fri, 10 Nov 2023 01:46:07 +0100 Subject: [PATCH] set `Connection->onDebug = nullptr` in Discord_Shutdown --- src/discord_rpc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/discord_rpc.cpp b/src/discord_rpc.cpp index a81e91c..3bb6c12 100644 --- a/src/discord_rpc.cpp +++ b/src/discord_rpc.cpp @@ -459,6 +459,7 @@ extern "C" DISCORD_EXPORT void Discord_Shutdown(void) } Connection->onConnect = nullptr; Connection->onDisconnect = nullptr; + Connection->onDebug = nullptr; Handlers = {}; QueuedPresence.length = 0; UpdatePresence.exchange(false);