From e240d57e28438788704a9b44bd39639f80a9f2ab Mon Sep 17 00:00:00 2001 From: Ian McInerney <ian.s.mcinerney@ieee.org> Date: Mon, 10 Feb 2025 14:46:40 +0000 Subject: [PATCH] pcb calculator: Cleanup remanents of the tool framework on close --- pcb_calculator/pcb_calculator_frame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcb_calculator/pcb_calculator_frame.cpp b/pcb_calculator/pcb_calculator_frame.cpp index 780642589e..548cbb5867 100644 --- a/pcb_calculator/pcb_calculator_frame.cpp +++ b/pcb_calculator/pcb_calculator_frame.cpp @@ -146,6 +146,10 @@ PCB_CALCULATOR_FRAME::~PCB_CALCULATOR_FRAME() // This needed for OSX: avoids further OnDraw processing after this destructor and before // the native window is destroyed this->Freeze(); + + // Clean up the tool framework + delete m_toolManager; + delete m_toolDispatcher; }