X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f2ec3c3de2a9fcabc409ae98b079514326ce543..e4f1a68ad1a4c145878a7595c06859d3d59fc6e7:/src/cocoa/window.mm diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index b5d0aabd32..8412232abb 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -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;