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
This commit is contained in:
@@ -526,6 +526,7 @@ void wxFrameManager::SetManagedWindow(wxWindow* frame)
|
|||||||
if (m_hint_wnd && !m_hint_wnd->CanSetTransparent())
|
if (m_hint_wnd && !m_hint_wnd->CanSetTransparent())
|
||||||
{
|
{
|
||||||
m_hint_wnd->Close();
|
m_hint_wnd->Close();
|
||||||
|
m_hint_wnd->Destroy();
|
||||||
m_hint_wnd = NULL;
|
m_hint_wnd = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user