1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 14:50:06 +02:00

Remove unused var newTracks.

Assert possible null pointer deref of label, per Vigilant Sentry analysis.
This commit is contained in:
v.audacity 2011-11-29 06:42:44 +00:00
parent bd97930f10
commit 1bd1e7a089

View File

@ -4142,10 +4142,7 @@ void AudacityProject::OnSplitLabelsToTracks()
n = iter.Next();
}
// one new track for every label, from that label to the next
TrackList newTracks;
wxASSERT(label); // per Vigilant Sentry report on possible null deref, FIX-ME: Report error or validate?
for(int i = 0; i < label->GetNumLabels(); i++) {
wxString name = label->GetLabel(i)->title;
double begin = label->GetLabel(i)->t;