From e13dcd7d7dab84b4ade24daf647593126442e25d Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 31 Mar 2020 15:48:44 +0200 Subject: [PATCH] Fix for graceful shutdown to avoid "nullptr" issue see https://discordapp.com/channels/539048679160676382/539925070550794240/694331123643187232 --- src/blackcore/context/contextaudio.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/blackcore/context/contextaudio.cpp b/src/blackcore/context/contextaudio.cpp index cff31e5df..1cbd03d23 100644 --- a/src/blackcore/context/contextaudio.cpp +++ b/src/blackcore/context/contextaudio.cpp @@ -231,7 +231,11 @@ namespace BlackCore void CContextAudioBase::gracefulShutdown() { this->terminateVoiceClient(); - m_selcalPlayer->gracefulShutdown(); + if (m_selcalPlayer) + { + m_selcalPlayer->gracefulShutdown(); + m_selcalPlayer = nullptr; + } QObject::disconnect(this); }