2
0
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:
John Preston
2017-06-28 15:03:13 +03:00
parent 2a51e2aa59
commit 3b864d63b9

View File

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