summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/eventuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/eventuno.cxx')
-rw-r--r--sc/source/ui/unoobj/eventuno.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/eventuno.cxx b/sc/source/ui/unoobj/eventuno.cxx
index 79e2971fd3fd..80aabff01b53 100644
--- a/sc/source/ui/unoobj/eventuno.cxx
+++ b/sc/source/ui/unoobj/eventuno.cxx
@@ -37,6 +37,8 @@ ScSheetEventsObj::ScSheetEventsObj(ScDocShell* pDocSh, SCTAB nT) :
ScSheetEventsObj::~ScSheetEventsObj()
{
+ SolarMutexGuard g;
+
if (mpDocShell)
mpDocShell->GetDocument().RemoveUnoObject(*this);
}