]> git.saurik.com Git - wxWidgets.git/commitdiff
resetting the wrapper flag later, otherwise the native destructors dealloc too much...
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 7 Sep 2010 16:05:01 +0000 (16:05 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 7 Sep 2010 16:05:01 +0000 (16:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/nonownedwnd_osx.cpp

index b8145b42164187a88c0092220c7f425eba315971..653e1a18d6744237c4f34604f65b3319d497265f 100644 (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;
 }