mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix crash in audio player destructor.
This commit is contained in:
@@ -194,7 +194,9 @@ void Start() {
|
||||
void Finish() {
|
||||
Platform::Audio::DeInit();
|
||||
|
||||
delete base::take(MixerInstance);
|
||||
// MixerInstance variable should be modified under AudioMutex protection.
|
||||
// So it is modified in the ~Mixer() destructor after all tracks are cleared.
|
||||
delete MixerInstance;
|
||||
|
||||
// No sync required already.
|
||||
ClosePlaybackDevice();
|
||||
|
Reference in New Issue
Block a user