From 45d438cd13b4c9231f9e461d81aa311a067b1fee Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 7 Oct 2018 14:55:20 -0700 Subject: [PATCH] pcbnew: Fix memory leak in Eagle importer unqiue_ptr release creates a memory leak unless the returned pointer is freed. --- pcbnew/eagle_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/eagle_plugin.cpp b/pcbnew/eagle_plugin.cpp index a9cc6f406e..653f48e400 100644 --- a/pcbnew/eagle_plugin.cpp +++ b/pcbnew/eagle_plugin.cpp @@ -293,7 +293,7 @@ BOARD* EAGLE_PLUGIN::Load( const wxString& aFileName, BOARD* aAppendToMe, const centerBoard(); - deleter.release(); + deleter.reset(); return m_board; }