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:
@@ -76,7 +76,7 @@ wxDialog::~wxDialog()
|
||||
wxLogDebug("Destroying");
|
||||
// setReleasedWhenClosed: NO
|
||||
[m_cocoaNSWindow close];
|
||||
SetNSPanel(NULL);
|
||||
DisassociateNSPanel(m_cocoaNSWindow);
|
||||
}
|
||||
|
||||
void wxDialog::Cocoa_close(void)
|
||||
|
Reference in New Issue
Block a user