X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e668651137922bee36b5773d638aa696e78854d1..7de1e98d398363b15012c060d5905eda5df28bca:/include/wx/cocoa/NSWindow.h diff --git a/include/wx/cocoa/NSWindow.h b/include/wx/cocoa/NSWindow.h index 15a0ac7996..04da760edc 100644 --- a/include/wx/cocoa/NSWindow.h +++ b/include/wx/cocoa/NSWindow.h @@ -25,7 +25,8 @@ public: void AssociateNSWindow(WX_NSWindow cocoaNSWindow); inline void DisassociateNSWindow(WX_NSWindow cocoaNSWindow) { - sm_cocoaHash.erase(cocoaNSWindow); + if(cocoaNSWindow) + sm_cocoaHash.erase(cocoaNSWindow); } virtual void Cocoa_close(void) = 0; virtual bool Cocoa_windowShouldClose(void) = 0;