mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-27 14:09:33 +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)
|
if(mNormalizeTo == kLoudness)
|
||||||
{
|
{
|
||||||
mLoudnessProcessor.reset(new EBUR128(mCurRate, range.size()));
|
mLoudnessProcessor.reset(safenew EBUR128(mCurRate, range.size()));
|
||||||
mLoudnessProcessor->Initialize();
|
mLoudnessProcessor->Initialize();
|
||||||
if(!ProcessOne(range, true))
|
if(!ProcessOne(range, true))
|
||||||
{
|
{
|
||||||
|
@ -2727,7 +2727,7 @@ void NyquistEffect::BuildEffectWindow(ShuttleGui & S)
|
|||||||
.MenuEnabled(true)
|
.MenuEnabled(true)
|
||||||
.ReadOnly(false);
|
.ReadOnly(false);
|
||||||
|
|
||||||
NumericTextCtrl *time = new
|
NumericTextCtrl *time = safenew
|
||||||
NumericTextCtrl(S.GetParent(), (ID_Time + i),
|
NumericTextCtrl(S.GetParent(), (ID_Time + i),
|
||||||
NumericConverter::TIME,
|
NumericConverter::TIME,
|
||||||
GetSelectionFormat(),
|
GetSelectionFormat(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user