Skip to content

Commit

Permalink
Fix issue LMMS#5409. (LMMS#5413)
Browse files Browse the repository at this point in the history
Fix multiple uninitialized reads.
  • Loading branch information
mfurkanuslu authored and Reflexe committed Apr 4, 2020
1 parent 13fd317 commit 335682e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Song::Song() :
m_oldTicksPerBar( DefaultTicksPerBar ),
m_masterVolumeModel( 100, 0, 200, this, tr( "Master volume" ) ),
m_masterPitchModel( 0, -12, 12, this, tr( "Master pitch" ) ),
m_nLoadingTrack( 0 ),
m_fileName(),
m_oldFileName(),
m_modified( false ),
Expand All @@ -79,6 +80,7 @@ Song::Song() :
m_renderBetweenMarkers( false ),
m_playing( false ),
m_paused( false ),
m_savingProject( false ),
m_loadingProject( false ),
m_isCancelled( false ),
m_playMode( Mode_None ),
Expand Down
3 changes: 2 additions & 1 deletion src/core/StepRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const int REMOVE_RELEASED_NOTE_TIME_THRESHOLD_MS = 70;

StepRecorder::StepRecorder(PianoRoll& pianoRoll, StepRecorderWidget& stepRecorderWidget):
m_pianoRoll(pianoRoll),
m_stepRecorderWidget(stepRecorderWidget)
m_stepRecorderWidget(stepRecorderWidget),
m_pattern(nullptr)
{
m_stepRecorderWidget.hide();
}
Expand Down
2 changes: 2 additions & 0 deletions src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ PianoRoll::PianoRoll() :
m_zoomingModel(),
m_quantizeModel(),
m_noteLenModel(),
m_scaleModel(),
m_chordModel(),
m_pattern( NULL ),
m_currentPosition(),
m_recording( false ),
Expand Down

0 comments on commit 335682e

Please sign in to comment.