mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix crash in audio player destructor.
This commit is contained in:
parent
2a51e2aa59
commit
3b864d63b9
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue