1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-24 16:38:07 +02:00

Use safenew (appropriately!) in two places

This commit is contained in:
Paul Licameli 2020-03-19 14:34:16 -04:00
parent 477c9d2a4e
commit 76a896845c
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ bool EffectLoudness::Process()
if(mNormalizeTo == kLoudness)
{
mLoudnessProcessor.reset(new EBUR128(mCurRate, range.size()));
mLoudnessProcessor.reset(safenew EBUR128(mCurRate, range.size()));
mLoudnessProcessor->Initialize();
if(!ProcessOne(range, true))
{

View File

@ -2727,7 +2727,7 @@ void NyquistEffect::BuildEffectWindow(ShuttleGui & S)
.MenuEnabled(true)
.ReadOnly(false);
NumericTextCtrl *time = new
NumericTextCtrl *time = safenew
NumericTextCtrl(S.GetParent(), (ID_Time + i),
NumericConverter::TIME,
GetSelectionFormat(),