[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Fri Mar 20 08:39:53 PDT 2015


 sw/source/core/unocore/unotbl.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 9527eeec237f5d797a6420371c76f95246adeb84
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 20 15:36:07 2015 +0000

    fix double delete on loading ooo123605-1.odt
    
    if there are no listeners to send the event to then don't
    acquire and release the Source in the temporary used by forEach
    and so avoid double-releasing on loading ooo123605-1.odt
    
    Change-Id: I6843042d7cf8c0ffee01c7d519299fcb05b29a4e

diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 5b74c2f..f72c9a9 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -109,6 +109,8 @@ using ::editeng::SvxBorderLine;
 static void lcl_SendChartEvent(::cppu::OWeakObject & rSource,
                                ::cppu::OInterfaceContainerHelper & rListeners)
 {
+    if (!rListeners.getLength())
+        return;
     //TODO: find appropriate settings of the Event
     chart::ChartDataChangeEvent event;
     event.Source = & rSource;


More information about the Libreoffice-commits mailing list