mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
Fix Linux assertion violation when closing Preferences
This commit is contained in:
parent
41151b0700
commit
96b749f232
@ -2404,11 +2404,13 @@ void AudioIO::SetPlaybackMeter(AudacityProject *project, MeterPanel *meter)
|
||||
if (( mOwningProject ) && ( mOwningProject != project))
|
||||
return;
|
||||
|
||||
mOutputMeter = meter;
|
||||
if (mOutputMeter)
|
||||
if (meter)
|
||||
{
|
||||
mOutputMeter = meter;
|
||||
mOutputMeter->Reset(mRate, true);
|
||||
}
|
||||
else
|
||||
mOutputMeter.Release();
|
||||
}
|
||||
|
||||
void AudioIO::SetMeters()
|
||||
|
Loading…
x
Reference in New Issue
Block a user