Fixed a memory leak in Spice probe

This commit is contained in:
Maciej Suminski 2017-10-29 00:54:22 +02:00
parent 4bf8bb79ce
commit a6f84051e9
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
if( !item )
break;
NETLIST_OBJECT_LIST* netlist = BuildNetListBase();
std::unique_ptr<NETLIST_OBJECT_LIST> netlist( BuildNetListBase() );
for( NETLIST_OBJECT* obj : *netlist )
{