mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-15 07:01:18 +02:00
TrackFactory functions return std::unique_ptr, although some callers...
... release() them for now.
This commit is contained in:
@@ -342,7 +342,7 @@ int PCMImportFileHandle::Import(TrackFactory *trackFactory,
|
||||
|
||||
int c;
|
||||
for (c = 0; c < mInfo.channels; c++) {
|
||||
channels[c] = trackFactory->NewWaveTrack(mFormat, mInfo.samplerate);
|
||||
channels[c] = trackFactory->NewWaveTrack(mFormat, mInfo.samplerate).release();
|
||||
|
||||
if (mInfo.channels > 1)
|
||||
switch (c) {
|
||||
|
Reference in New Issue
Block a user