Fix de-reference of freed memory issue.

This commit is contained in:
Jeff Young
2019-05-05 17:14:30 +01:00
parent a825cdfa5a
commit 554094ada6
+1 -1
View File
@@ -190,7 +190,7 @@ void SCH_BASE_FRAME::SetScreen( BASE_SCREEN* aScreen )
if( m_toolManager )
{
m_toolManager->SetEnvironment( GetScreen(), GetCanvas()->GetView(),
m_toolManager->SetEnvironment( aScreen, GetCanvas()->GetView(),
GetCanvas()->GetViewControls(), this );
}
}