From: Alex Bligh Date: Sat, 22 Jul 2006 16:41:14 +0000 (+0000) Subject: wxAUI: Do not leak a wxFrame if transparency is not supported X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f2c78bada474f9d786ae2e0f0967f66ba61c4b4a wxAUI: Do not leak a wxFrame if transparency is not supported git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index f4a6092772..27e9a80df3 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -526,6 +526,7 @@ void wxFrameManager::SetManagedWindow(wxWindow* frame) if (m_hint_wnd && !m_hint_wnd->CanSetTransparent()) { m_hint_wnd->Close(); + m_hint_wnd->Destroy(); m_hint_wnd = NULL; } }