summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-09 14:11:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-09 14:16:36 +0000
commitca1d5ef57dc1ae7a0ebafc5ed9a11150ca6eb4eb (patch)
tree7fc6f6ef4c5f1a6d9288af57be5e28ee9989ab07 /basic/source
parent58277b4039d7cbdcc4a2de11bd16b9d09d825bc4 (diff)
Resolves: fdo#86843 avoid getting deleted before finishing Broadcast
Change-Id: I19181f9e2fbd5f906e6e5d807b1b2483e7881cf0 (cherry picked from commit 19d0950451f909086c3732ce29812c4cda513908)
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/sbx/sbxvar.cxx5
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;