In the object destructor, Disassociate the object from its Cocoa counterpart

but leave m_cocoaNSWindow intact so base class destructor can use it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-07-14 03:04:37 +00:00
parent fe169919d8
commit 6a9afc7adf

View File

@@ -76,7 +76,7 @@ wxDialog::~wxDialog()
wxLogDebug("Destroying");
// setReleasedWhenClosed: NO
[m_cocoaNSWindow close];
SetNSPanel(NULL);
DisassociateNSPanel(m_cocoaNSWindow);
}
void wxDialog::Cocoa_close(void)