the ~wxWindow destructor will not try to remove it from its superview (BAD!)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22594
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxTopLevelWindowCocoa::~wxTopLevelWindowCocoa()
{
wxAutoNSAutoreleasePool pool;
- // Hand ownership of the content view to wxWindow so it can destroy
- // itself properly.
- NSView *view = [m_cocoaNSView retain];
+ DestroyChildren();
SetNSWindow(NULL);
- SetNSView(view);
- [view release];
}
// ----------------------------------------------------------------------------