Fixed ratsnest related segfaults on BOARD destruction.

This commit is contained in:
Maciej Suminski 2014-02-11 14:26:33 +01:00
parent 9ef713dfa8
commit e6a01e5a41
1 changed files with 2 additions and 2 deletions

View File

@ -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();