From e6a01e5a412b297ef825f294296fa6b479377380 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 11 Feb 2014 14:26:33 +0100 Subject: [PATCH] Fixed ratsnest related segfaults on BOARD destruction. --- pcbnew/class_board.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();