From 0f417a65c7535ba5042c6dd3c791d7b864fa3c8b Mon Sep 17 00:00:00 2001 From: James Crook Date: Sun, 11 Sep 2016 22:00:01 +0100 Subject: [PATCH] RaphaelMarinier - Initialise mFreqSelTrack (found by Valgrind) --- src/TrackPanel.cpp | 2 +- src/TrackPanel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index fbc7a3803..3f4c2af3e 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -2467,7 +2467,7 @@ void TrackPanel::MoveSnappingFreqSelection (int mouseYCoordinate, void TrackPanel::StartFreqSelection (int mouseYCoordinate, int trackTopEdge, int trackHeight, Track *pTrack) { - mFreqSelTrack = 0; + mFreqSelTrack = NULL; mFreqSelMode = FREQ_SEL_INVALID; mFreqSelPin = SelectedRegion::UndefinedFrequency; diff --git a/src/TrackPanel.h b/src/TrackPanel.h index dc010a7e2..5caeaf493 100644 --- a/src/TrackPanel.h +++ b/src/TrackPanel.h @@ -597,7 +597,7 @@ protected: // FREQ_SEL_BOTTOM_FREE, // and is ignored otherwise. double mFreqSelPin; - const WaveTrack *mFreqSelTrack; + const WaveTrack *mFreqSelTrack = NULL; std::unique_ptr mFrequencySnapper; // For toggling of spectral seletion