Cleanup PCB_GROUP objects on the board when deleting the board

This commit is contained in:
Ian McInerney 2020-09-16 02:03:27 +01:00
parent 9ea2dbe87b
commit ea06c16255
1 changed files with 4 additions and 1 deletions

View File

@ -120,11 +120,14 @@ BOARD::~BOARD()
m_tracks.clear();
for ( BOARD_ITEM* d : m_drawings )
for( BOARD_ITEM* d : m_drawings )
delete d;
m_drawings.clear();
for( PCB_GROUP* g : m_groups )
delete g;
m_groups.clear();
}