diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index 9777f82e8c..8a2d9ee59e 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -372,7 +372,10 @@ PNS_ROUTER::~PNS_ROUTER() void PNS_ROUTER::ClearWorld() { if( m_world ) + { + m_world->KillChildren(); delete m_world; + } if( m_clearanceFunc ) delete m_clearanceFunc;