Kaydet (Commit) 9d6e1de0 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Context menus were never destructed

Change-Id: I34ae9dbb5b00fa2b6a1ef5c115a796d4e28eafa9
üst b2f5336b
......@@ -1899,6 +1899,10 @@ void SfxDispatcher::ExecutePopup( const OUString& rResName, vcl::Window *pWin, c
PopupMenu* pVCLMenu = static_cast< PopupMenu* >( pAwtMenu->GetMenu() );
if ( pVCLMenu && GetFrame()->GetViewShell()->TryContextMenuInterception( *pVCLMenu, rResName, aEvent ) )
pVCLMenu->Execute( pWindow, aPos );
css::uno::Reference< css::lang::XComponent > xComponent( xPopupController, css::uno::UNO_QUERY );
if ( xComponent.is() )
xComponent->dispose();
}
/** With this method the SfxDispatcher can be locked and released. A locked
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment