mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Fix crash in audio player destructor.
This commit is contained in:
@@ -194,7 +194,9 @@ void Start() {
|
|||||||
void Finish() {
|
void Finish() {
|
||||||
Platform::Audio::DeInit();
|
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.
|
// No sync required already.
|
||||||
ClosePlaybackDevice();
|
ClosePlaybackDevice();
|
||||||
|
Reference in New Issue
Block a user