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 ) {