]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/framecmn.cpp
fixed memory leak in colour parsing code
[wxWidgets.git] / src / common / framecmn.cpp
index b69ca51332c985e75918d6dddff501a1e426cab2..3cc2dff527d745502ad526e86202dea0702c1870 100644 (file)
@@ -427,8 +427,11 @@ void wxFrameBase::DoMenuUpdates()
 {
     wxMenuBar* bar = GetMenuBar();
 
+#ifdef __WXMSW__
     wxWindow* focusWin = wxFindFocusDescendant((wxWindow*) this);
-
+#else
+    wxWindow* focusWin = (wxWindow*) NULL;
+#endif
     if ( bar != NULL )
     {
         int nCount = bar->GetMenuCount();