From 440b0985cb334f5e76cb0c3f3bcb17135936e035 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 30 Sep 2014 17:12:16 +0200 Subject: 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 --- sw/source/uibase/uno/unoatxt.cxx | 1 + 1 file changed, 1 insertion(+) 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(); } } -- cgit