1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Deallocate sound chunk immediately on end of playback

This commit is contained in:
Ivan Savenko
2025-04-29 13:17:21 +03:00
parent be2ebc8e56
commit 04ba017198

View File

@@ -325,6 +325,8 @@ void CSoundHandler::soundFinishedCallback(int channel)
{
std::scoped_lock lockGuard(mutexCallbacks);
uncachedPlayingChunks.erase(channel);
if(callbacks.count(channel) == 0)
return;