1
0
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:
tux3 2015-06-03 19:33:17 +02:00
parent d66c5c1846
commit c180fa15de
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -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();