1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-28 16:20:12 +01:00

Two Initialisations (Valgrind)

This commit is contained in:
Darrell Walisser
2017-03-01 22:39:27 +00:00
committed by James Crook
parent a3d20c846a
commit d1b49952e9
2 changed files with 2 additions and 0 deletions

View File

@@ -355,6 +355,7 @@ ToolDock::ToolDock( ToolManager *manager, wxWindow *parent, int dockid ):
// Init // Init
mManager = manager; mManager = manager;
memset(mBars, 0, sizeof(mBars)); // otherwise uninitialized
// Use for testing gaps // Use for testing gaps
// SetOwnBackgroundColour( wxColour( 255, 0, 0 ) ); // SetOwnBackgroundColour( wxColour( 255, 0, 0 ) );

View File

@@ -1959,6 +1959,7 @@ AdornedRulerPanel::AdornedRulerPanel(AudacityProject* project,
mCursorDefault = wxCursor(wxCURSOR_DEFAULT); mCursorDefault = wxCursor(wxCURSOR_DEFAULT);
mCursorHand = wxCursor(wxCURSOR_HAND); mCursorHand = wxCursor(wxCURSOR_HAND);
mCursorSizeWE = wxCursor(wxCURSOR_SIZEWE); mCursorSizeWE = wxCursor(wxCURSOR_SIZEWE);
mIsWE = false;
mLeftOffset = 0; mLeftOffset = 0;
mIndTime = -1; mIndTime = -1;