mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-06 15:19:29 +02:00
Remove unused var newTracks.
Assert possible null pointer deref of label, per Vigilant Sentry analysis.
This commit is contained in:
parent
bd97930f10
commit
1bd1e7a089
@ -4142,10 +4142,7 @@ void AudacityProject::OnSplitLabelsToTracks()
|
|||||||
n = iter.Next();
|
n = iter.Next();
|
||||||
}
|
}
|
||||||
|
|
||||||
// one new track for every label, from that label to the next
|
wxASSERT(label); // per Vigilant Sentry report on possible null deref, FIX-ME: Report error or validate?
|
||||||
|
|
||||||
TrackList newTracks;
|
|
||||||
|
|
||||||
for(int i = 0; i < label->GetNumLabels(); i++) {
|
for(int i = 0; i < label->GetNumLabels(); i++) {
|
||||||
wxString name = label->GetLabel(i)->title;
|
wxString name = label->GetLabel(i)->title;
|
||||||
double begin = label->GetLabel(i)->t;
|
double begin = label->GetLabel(i)->t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user