Cleanup PCB_GROUP objects on the board when deleting the board
This commit is contained in:
parent
9ea2dbe87b
commit
ea06c16255
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue