Fix crash in audio clip if it's still streaming after unload

#2866
This commit is contained in:
Wojtek Figat
2024-08-21 22:04:30 +02:00
parent 73a596cb2f
commit 1c840539c6

View File

@@ -396,6 +396,7 @@ void AudioClip::unload(bool isReloading)
}
StopStreaming();
CancelStreamingTasks();
StreamingQueue.Clear();
if (hasAnyBuffer && AudioBackend::Instance)
{