mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix nullptr dereference on A/V timeout
This commit is contained in:
parent
d66c5c1846
commit
c180fa15de
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user