// above alloc and thus the retain count will be 1.
[m_cocoaNSWindow release];
wxLogDebug("wxDialog m_cocoaNSWindow retainCount=%d",[m_cocoaNSWindow retainCount]);
// above alloc and thus the retain count will be 1.
[m_cocoaNSWindow release];
wxLogDebug("wxDialog m_cocoaNSWindow retainCount=%d",[m_cocoaNSWindow retainCount]);