From 5b599213f6734f496e43b671f88f5145ea6a8527 Mon Sep 17 00:00:00 2001 From: Mark Roszko Date: Mon, 7 Jul 2025 20:58:40 -0400 Subject: [PATCH] Unbind the onsize event from the parent while destructing the child Fixes KICAD-RJA --- common/widgets/wx_infobar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/widgets/wx_infobar.cpp b/common/widgets/wx_infobar.cpp index a1e34a2db2..4b1788e59c 100644 --- a/common/widgets/wx_infobar.cpp +++ b/common/widgets/wx_infobar.cpp @@ -108,6 +108,8 @@ WX_INFOBAR::WX_INFOBAR( wxWindow* aParent, wxAuiManager* aMgr, wxWindowID aWinid WX_INFOBAR::~WX_INFOBAR() { + m_parent->Unbind( wxEVT_SIZE, &WX_INFOBAR::onSize, this ); + delete m_showTimer; }