]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/NSWindow.h
Removed some cruft
[wxWidgets.git] / include / wx / cocoa / NSWindow.h
index 15a0ac79969bb6905f0be2c19033410f56d8ee55..04da760edc8e25e21bc882a3b8c0683ca4d7efa0 100644 (file)
@@ -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;