diff --git a/pcbnew/class_board.cpp b/pcbnew/class_board.cpp index da3bd81fa9..7f7bbb5a43 100644 --- a/pcbnew/class_board.cpp +++ b/pcbnew/class_board.cpp @@ -110,14 +110,14 @@ BOARD::BOARD() : BOARD::~BOARD() { - delete m_ratsnest; - while( m_ZoneDescriptorList.size() ) { ZONE_CONTAINER* area_to_remove = m_ZoneDescriptorList[0]; Delete( area_to_remove ); } + delete m_ratsnest; + m_FullRatsnest.clear(); m_LocalRatsnest.clear();