From 3460c50afa31993c3c670b3948cdec2cac9ea908 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 27 Nov 2022 16:21:06 -0800 Subject: [PATCH] Attempt to avoid double-free when shutting down on Windows --- pcbnew/dialogs/pcb_properties_panel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/dialogs/pcb_properties_panel.cpp b/pcbnew/dialogs/pcb_properties_panel.cpp index 92f6b3e99b..4a833712fb 100644 --- a/pcbnew/dialogs/pcb_properties_panel.cpp +++ b/pcbnew/dialogs/pcb_properties_panel.cpp @@ -54,6 +54,7 @@ PCB_PROPERTIES_PANEL::~PCB_PROPERTIES_PANEL() wxPGGlobalVars->m_mapEditorClasses.erase( it ); delete static_cast( it->second ); + it->second = nullptr; } }