From a6f84051e9826a23a8d5ab61c742d0141337a8d2 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sun, 29 Oct 2017 00:54:22 +0200 Subject: [PATCH] Fixed a memory leak in Spice probe --- eeschema/onleftclick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/onleftclick.cpp b/eeschema/onleftclick.cpp index f93e0e80e5..ed349001b6 100644 --- a/eeschema/onleftclick.cpp +++ b/eeschema/onleftclick.cpp @@ -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( BuildNetListBase() ); for( NETLIST_OBJECT* obj : *netlist ) {