]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/window.mm
Compilation fix.
[wxWidgets.git] / src / cocoa / window.mm
index b5d0aabd32999eb6ba379c18ef57f9069a45e6bb..8412232abbd5678d00700965a878085b1979053d 100644 (file)
@@ -9,8 +9,11 @@
 // Licence:    wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/window.h"
-#include "wx/log.h"
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+    #include "wx/log.h"
+    #include "wx/window.h"
+#endif //WX_PRECOMP
 
 #include "wx/cocoa/autorelease.h"
 
@@ -278,9 +281,6 @@ wxWindow::~wxWindow()
     wxAutoNSAutoreleasePool pool;
     DestroyChildren();
 
-    if(m_parent)
-        m_parent->RemoveChild(this);
-
     CocoaRemoveFromParent();
     delete m_cocoaHider;
     delete m_cocoaScroller;