]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/toplevel.mm
Blind fix for missing files
[wxWidgets.git] / src / cocoa / toplevel.mm
index 43fb63faf2334fad681f33d0a68609153a5f81c6..70d3089d7d7a5f33b8a9918114b7553867dc170f 100644 (file)
@@ -140,6 +140,8 @@ wxTopLevelWindowCocoa::~wxTopLevelWindowCocoa()
     wxASSERT(sm_cocoaDeactivateWindow!=this);
     wxAutoNSAutoreleasePool pool;
     DestroyChildren();
+    if(m_cocoaNSView)
+        SendDestroyEvent();
     SetNSWindow(NULL);
 }