basic/source/sbx/sbxvar.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit ca1d5ef57dc1ae7a0ebafc5ed9a11150ca6eb4eb
Author: Caolán McNamara <[email protected]>
Date:   Tue Dec 9 14:11:07 2014 +0000

    Resolves: fdo#86843 avoid getting deleted before finishing Broadcast
    
    Change-Id: I19181f9e2fbd5f906e6e5d807b1b2483e7881cf0
    (cherry picked from commit 19d0950451f909086c3732ce29812c4cda513908)

diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx
index 5e75950..52b115f 100644
--- a/basic/source/sbx/sbxvar.cxx
+++ b/basic/source/sbx/sbxvar.cxx
@@ -164,6 +164,11 @@ void SbxVariable::Broadcast( sal_uIntPtr nHintId )
                 return;
             }
         }
+
+        //fdo#86843 Add a ref during the following block to guard against
+        //getting deleted before completing this method
+        SbxVariableRef aBroadcastGuard(this);
+
         // Avoid further broadcasting
         SfxBroadcaster* pSave = pCst;
         pCst = NULL;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to