summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-09-30 17:12:16 +0200
committerMichael Stahl <mstahl@redhat.com>2014-09-30 17:34:27 +0200
commit440b0985cb334f5e76cb0c3f3bcb17135936e035 (patch)
tree65912f525d092402ee6f7550730a46a0d8b19c28
parent0569e10d01a01b9fe3bf18245799dd6f264fd7df (diff)
SwXAutoTextEntry: de-register on SFX_EVENT_PREPARECLOSEDOC event
Evidently (sw_unoapi) it's possible that ~SwXAutoTextEntry() completes but the thing is still registered at a SfxBroadcaster - probably because the Notify() method may clear xDocSh without de-registering. Change-Id: I81a7f4ab3a9f3d685181891d6a7f5a826b7d2bf0
-rw-r--r--sw/source/uibase/uno/unoatxt.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx
index 3095807f4be6..0eacc65ba8e6 100644
--- a/sw/source/uibase/uno/unoatxt.cxx
+++ b/sw/source/uibase/uno/unoatxt.cxx
@@ -805,6 +805,7 @@ void SwXAutoTextEntry::Notify( SfxBroadcaster& _rBC, const SfxHint& _rHint )
{
implFlushDocument( false );
xBodyText = 0;
+ EndListening( *&xDocSh );
xDocSh.Clear();
}
}