diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-09 14:11:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-09 14:13:26 +0000 |
commit | 19d0950451f909086c3732ce29812c4cda513908 (patch) | |
tree | fc2bb6be7c65a48227968d6527ccbb12774bc685 /basic/source | |
parent | a719865c9af0c38c429a00e9185575644e430666 (diff) |
Resolves: fdo#86843 avoid getting deleted before finishing Broadcast
Change-Id: I19181f9e2fbd5f906e6e5d807b1b2483e7881cf0
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx index 5e7595041828..52b115f019be 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; |