1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Bug1884: fix crash when record to new track and fail to open device

This commit is contained in:
Paul Licameli 2018-06-10 17:30:22 -04:00
parent 3051e9ce7e
commit 800ddf32e1

View File

@ -1482,6 +1482,7 @@ void TrackList::ClearPendingTracks( ListOfTracks *pAdded )
if (it->get()->GetId() == TrackId{}) {
if (pAdded)
pAdded->push_back( *it );
(*it)->SetOwner( {}, {} );
it = erase( it );
}
else