diff --git a/pcbnew/router/pns_node.cpp b/pcbnew/router/pns_node.cpp index a62c956ad8..948a8399aa 100644 --- a/pcbnew/router/pns_node.cpp +++ b/pcbnew/router/pns_node.cpp @@ -719,6 +719,14 @@ void NODE::Add( std::unique_ptr< ITEM > aItem, bool aAllowRedundant ) break; case ITEM::LINE_T: + { + //fixme(twl): I don't like unique_ptr in this methods as the router has its own garbage collecting + //mechanism. This particular case is used exclusively in ROUTER::GetUpdatedItems() for + //dumping debug logs. Please don't call Add ( up ) otherwise, dragons live here. + LINE *l = static_cast( aItem.get() ); + Add( *l ); + break; + } default: assert( false ); }