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,9 +236,12 @@ void Core::cleanupCall(int32_t callId)
|
||||||
{
|
{
|
||||||
delete calls[callId].camera;
|
delete calls[callId].camera;
|
||||||
calls[callId].camera = nullptr;
|
calls[callId].camera = nullptr;
|
||||||
|
if (calls[callId].videoSource)
|
||||||
|
{
|
||||||
calls[callId].videoSource->setDeleteOnClose(true);
|
calls[callId].videoSource->setDeleteOnClose(true);
|
||||||
calls[callId].videoSource = nullptr;
|
calls[callId].videoSource = nullptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Audio::unsuscribeInput();
|
Audio::unsuscribeInput();
|
||||||
toxav_kill_transmission(Core::getInstance()->toxav, callId);
|
toxav_kill_transmission(Core::getInstance()->toxav, callId);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user