diff --git a/src/core/coreav.cpp b/src/core/coreav.cpp index 2db076942..89c2ab80e 100644 --- a/src/core/coreav.cpp +++ b/src/core/coreav.cpp @@ -236,8 +236,11 @@ void Core::cleanupCall(int32_t callId) { delete calls[callId].camera; calls[callId].camera = nullptr; - calls[callId].videoSource->setDeleteOnClose(true); - calls[callId].videoSource = nullptr; + if (calls[callId].videoSource) + { + calls[callId].videoSource->setDeleteOnClose(true); + calls[callId].videoSource = nullptr; + } } Audio::unsuscribeInput();