mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
More use of shared_ptr to Track, for safety...
... This even makes it possible to remove the prohibition of undo and redo during transport, not that we want to though. Playback and recording will continue, using track objects that might not be in the current project.
This commit is contained in:
@@ -327,7 +327,7 @@ bool RecordingRecoveryHandler::HandleXMLTag(const wxChar *tag,
|
||||
return false;
|
||||
}
|
||||
|
||||
WaveTrack* track = tracks[index];
|
||||
WaveTrack* track = tracks[index].get();
|
||||
WaveClip* clip = track->NewestOrNewClip();
|
||||
Sequence* seq = clip->GetSequence();
|
||||
|
||||
@@ -412,7 +412,7 @@ void RecordingRecoveryHandler::HandleXMLEndTag(const wxChar *tag)
|
||||
wxASSERT(false);
|
||||
}
|
||||
else {
|
||||
WaveTrack* track = tracks[index];
|
||||
WaveTrack* track = tracks[index].get();
|
||||
WaveClip* clip = track->NewestOrNewClip();
|
||||
Sequence* seq = clip->GetSequence();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user