X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9f994d915258895892228500eba5e30f04ebbdb..d21d2e5adf7a5acf3b496a9c4e87eab220bd75d8:/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 ) {