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:
@@ -325,6 +325,8 @@ void CSoundHandler::soundFinishedCallback(int channel)
|
||||
{
|
||||
std::scoped_lock lockGuard(mutexCallbacks);
|
||||
|
||||
uncachedPlayingChunks.erase(channel);
|
||||
|
||||
if(callbacks.count(channel) == 0)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user