mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +01:00
TrackFactory functions return std::unique_ptr, although some callers...
... release() them for now.
This commit is contained in:
@@ -344,7 +344,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent & WXUNUSED(event))
|
||||
|
||||
ZoomInfo zoomInfo(0.0, ZoomInfo::GetDefaultZoom());
|
||||
DirManager *d = new DirManager();
|
||||
WaveTrack *const t = TrackFactory{ d, &zoomInfo }.NewWaveTrack(int16Sample);
|
||||
const auto t = TrackFactory{ d, &zoomInfo }.NewWaveTrack(int16Sample);
|
||||
Track *tmp = NULL;
|
||||
|
||||
t->SetRate(1);
|
||||
@@ -533,8 +533,6 @@ void BenchmarkDialog::OnRun( wxCommandEvent & WXUNUSED(event))
|
||||
if (tmp)
|
||||
delete tmp;
|
||||
|
||||
delete t;
|
||||
|
||||
delete[]small1;
|
||||
delete[]small2;
|
||||
delete[]block;
|
||||
|
||||
Reference in New Issue
Block a user