resetting the wrapper flag later, otherwise the native destructors dealloc too much, fixes #12448

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-09-07 16:05:01 +00:00
parent d623e8b18a
commit 77eb08cc36

View File

@@ -176,9 +176,9 @@ void wxNonOwnedWindow::UnsubclassWin()
GetParent()->RemoveChild(this);
wxNonOwnedWindowImpl::RemoveAssociations(m_nowpeer) ;
m_isNativeWindowWrapper = false;
wxDELETE(m_nowpeer);
wxDELETE(m_peer);
m_isNativeWindowWrapper = false;
}