X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e668651137922bee36b5773d638aa696e78854d1..7686554b2508ed9f94027029703614fb684b89d6:/include/wx/cocoa/NSButton.h diff --git a/include/wx/cocoa/NSButton.h b/include/wx/cocoa/NSButton.h index 7e8f8add03..0f027871cf 100644 --- a/include/wx/cocoa/NSButton.h +++ b/include/wx/cocoa/NSButton.h @@ -6,7 +6,7 @@ // Created: 2002/12/09 // RCS-ID: $Id: // Copyright: (c) 2002 David Elliott -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef __WX_COCOA_NSBUTTON_H__ @@ -24,7 +24,8 @@ public: void AssociateNSButton(WX_NSButton cocoaNSButton); inline void DisassociateNSButton(WX_NSButton cocoaNSButton) { - sm_cocoaHash.erase(cocoaNSButton); + if(cocoaNSButton) + sm_cocoaHash.erase(cocoaNSButton); } public: