1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

RaphaelMarinier - Initialise mFreqSelTrack (found by Valgrind)

This commit is contained in:
James Crook 2016-09-11 22:00:01 +01:00
parent b44ad7cd71
commit 0f417a65c7
2 changed files with 2 additions and 2 deletions

View File

@ -2467,7 +2467,7 @@ void TrackPanel::MoveSnappingFreqSelection (int mouseYCoordinate,
void TrackPanel::StartFreqSelection (int mouseYCoordinate, int trackTopEdge, void TrackPanel::StartFreqSelection (int mouseYCoordinate, int trackTopEdge,
int trackHeight, Track *pTrack) int trackHeight, Track *pTrack)
{ {
mFreqSelTrack = 0; mFreqSelTrack = NULL;
mFreqSelMode = FREQ_SEL_INVALID; mFreqSelMode = FREQ_SEL_INVALID;
mFreqSelPin = SelectedRegion::UndefinedFrequency; mFreqSelPin = SelectedRegion::UndefinedFrequency;

View File

@ -597,7 +597,7 @@ protected:
// FREQ_SEL_BOTTOM_FREE, // FREQ_SEL_BOTTOM_FREE,
// and is ignored otherwise. // and is ignored otherwise.
double mFreqSelPin; double mFreqSelPin;
const WaveTrack *mFreqSelTrack; const WaveTrack *mFreqSelTrack = NULL;
std::unique_ptr<SpectrumAnalyst> mFrequencySnapper; std::unique_ptr<SpectrumAnalyst> mFrequencySnapper;
// For toggling of spectral seletion // For toggling of spectral seletion