From ee2c5bb489791038c67e1f1a18bd82c366c8853e Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Mon, 1 Feb 2021 19:23:07 -0500 Subject: [PATCH] Remove memory leak when importing settings for a board --- pcbnew/dialogs/dialog_board_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_board_setup.cpp b/pcbnew/dialogs/dialog_board_setup.cpp index 25baaff1af..dfeef33d3c 100644 --- a/pcbnew/dialogs/dialog_board_setup.cpp +++ b/pcbnew/dialogs/dialog_board_setup.cpp @@ -161,7 +161,7 @@ void DIALOG_BOARD_SETUP::OnAuxiliaryAction( wxCommandEvent& event ) PLUGIN::RELEASER pi( IO_MGR::PluginFind( IO_MGR::KICAD_SEXP ) ); - BOARD* otherBoard = new BOARD(); + BOARD* otherBoard = nullptr; try {