Remove extra creation of an outline for the soldermask zone
The zone class initializes the outline with an empty SHAPE_POLY_SET, so adding a new SHAPE_POLY_SET outline in the BOARD constructor causes a leak of the original.
This commit is contained in:
parent
6b218ff764
commit
ea259fd093
|
@ -93,7 +93,6 @@ BOARD::BOARD() :
|
|||
|
||||
m_SolderMask = new ZONE( this );
|
||||
m_SolderMask->SetLayerSet( LSET().set( F_Mask ).set( B_Mask ) );
|
||||
m_SolderMask->SetOutline( new SHAPE_POLY_SET() );
|
||||
int infinity = ( std::numeric_limits<int>::max() / 2 ) - pcbIUScale.mmToIU( 1 );
|
||||
m_SolderMask->Outline()->NewOutline();
|
||||
m_SolderMask->Outline()->Append( VECTOR2I( -infinity, -infinity ) );
|
||||
|
|
Loading…
Reference in New Issue