Fixed a memory leak in Spice probe
This commit is contained in:
parent
4bf8bb79ce
commit
a6f84051e9
|
@ -322,7 +322,7 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
|
||||||
if( !item )
|
if( !item )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
NETLIST_OBJECT_LIST* netlist = BuildNetListBase();
|
std::unique_ptr<NETLIST_OBJECT_LIST> netlist( BuildNetListBase() );
|
||||||
|
|
||||||
for( NETLIST_OBJECT* obj : *netlist )
|
for( NETLIST_OBJECT* obj : *netlist )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue