Commit c09e8ade authored by Maciej Suminski's avatar Maciej Suminski

Fixed ratsnest related segfaults on BOARD destruction.

parent ae5fa232
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment