From: David Elliott Date: Mon, 14 Jul 2003 03:04:37 +0000 (+0000) Subject: In the object destructor, Disassociate the object from its Cocoa counterpart X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6a9afc7adfa2ece7384ee5986854615f2ba6f723?ds=inline 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 --- diff --git a/src/cocoa/dialog.mm b/src/cocoa/dialog.mm index 59cf2fb0a2..3a3625556d 100644 --- a/src/cocoa/dialog.mm +++ b/src/cocoa/dialog.mm @@ -76,7 +76,7 @@ wxDialog::~wxDialog() wxLogDebug("Destroying"); // setReleasedWhenClosed: NO [m_cocoaNSWindow close]; - SetNSPanel(NULL); + DisassociateNSPanel(m_cocoaNSWindow); } void wxDialog::Cocoa_close(void)