Fix de-reference of freed memory issue.

This commit is contained in:
Jeff Young 2019-05-03 11:16:39 +01:00
parent a825cdfa5a
commit 554094ada6
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ void SCH_BASE_FRAME::SetScreen( BASE_SCREEN* aScreen )
if( m_toolManager ) if( m_toolManager )
{ {
m_toolManager->SetEnvironment( GetScreen(), GetCanvas()->GetView(), m_toolManager->SetEnvironment( aScreen, GetCanvas()->GetView(),
GetCanvas()->GetViewControls(), this ); GetCanvas()->GetViewControls(), this );
} }
} }