X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9f994d915258895892228500eba5e30f04ebbdb..c0ad3d42d5eb619556a3905df22338360b1f6fcc:/src/univ/menu.cpp diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index b72b959215..967fa78da4 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -2295,7 +2295,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar) void wxMenuBar::OnDismiss() { - GetCapture()->ReleaseMouse(); + if ( GetCapture() ) + GetCapture()->ReleaseMouse(); if ( m_current != -1 ) {