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:
parent
477c9d2a4e
commit
76a896845c
@ -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))
|
||||
{
|
||||
|
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user