diff --git a/pcbnew/class_board.cpp b/pcbnew/class_board.cpp index 074d78dfdb..4cd7f58450 100644 --- a/pcbnew/class_board.cpp +++ b/pcbnew/class_board.cpp @@ -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(); }