From: Robert Roebling Date: Tue, 22 May 2007 07:55:39 +0000 (+0000) Subject: [ 1712381 ] CRASH: closing floating panel on GTK X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/befda04080305959a15ef6ce400f49549b101c6a [ 1712381 ] CRASH: closing floating panel on GTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index fb40bea51d..5ae4d181a1 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -3540,6 +3540,10 @@ void wxAuiManager::OnFloatingPaneActivated(wxWindow* wnd) void wxAuiManager::OnRender(wxAuiManagerEvent& evt) { + // if the frame is about to be deleted, don't bother + if (!m_frame || wxPendingDelete.Member(m_frame)) + return; + wxDC* dc = evt.GetDC(); #ifdef __WXMAC__