sw/source/uibase/uiview/viewling.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 57c3b726d0845a2070acccbe6a30837c3cc8a341
Author: Maxim Monastirsky <momonas...@gmail.com>
Date:   Thu Mar 3 00:32:25 2016 +0200

    Break SmartTagMenuController-VCLXMenu cycle
    
    Change-Id: I6da45f6b6750f78d309fa3080eada1931640f188

diff --git a/sw/source/uibase/uiview/viewling.cxx 
b/sw/source/uibase/uiview/viewling.cxx
index 5bba5c4..3050d02 100644
--- a/sw/source/uibase/uiview/viewling.cxx
+++ b/sw/source/uibase/uiview/viewling.cxx
@@ -819,6 +819,10 @@ void SwView::ExecSmartTagPopup( const Point& rPt )
         if ( aToFill.HasArea() )
             xPopupMenu->execute( m_pEditWin->GetComponentInterface(),
                                  VCLUnoHelper::ConvertToAWTRect( 
m_pEditWin->LogicToPixel( aToFill.SVRect() ) ), 
css::awt::PopupMenuDirection::EXECUTE_DOWN );
+
+        css::uno::Reference< css::lang::XComponent > xComponent( 
xPopupController, css::uno::UNO_QUERY );
+        if ( xComponent.is() )
+            xComponent->dispose();
     }
 
     m_pWrtShell->Pop( false );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to