Cleanup zone bbox cache in destructor

This commit is contained in:
qu1ck 2023-01-10 18:57:51 -08:00 committed by Jeff Young
parent f4ac4be701
commit 2654279678
2 changed files with 10 additions and 4 deletions

View File

@ -229,6 +229,9 @@ FOOTPRINT::~FOOTPRINT()
delete d;
m_drawings.clear();
if( BOARD* board = GetBoard() )
board->IncrementTimeStamp();
}

View File

@ -93,6 +93,9 @@ ZONE::~ZONE()
{
delete m_Poly;
delete m_CornerSelection;
if( BOARD* board = GetBoard() )
board->IncrementTimeStamp();
}