summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-01 09:50:36 +0000
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-01 12:28:38 +0000
commit32c29f79cb976f8b04eb635857ef3b8eecde443e (patch)
treed8da84dd76bb627400f31c13cb9d7c08602de41a /sfx2
parenta77223b281d79db60c6905e77538f077200b1af8 (diff)
Revert "don't write item right before destruction"
triggers warnings in the dtor if RefCount isn't reset. revert till we have better ref counts and don't need debug code in dtor. This reverts commit b74d2433c856d6d172d9588f4b6d59c31ec02853. Change-Id: I1835885d94e15339aa7602037d850e1524fd9662 Reviewed-on: https://gerrit.libreoffice.org/29427 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/itemdel.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/control/itemdel.cxx b/sfx2/source/control/itemdel.cxx
index 23f900902af9..096ab3752864 100644
--- a/sfx2/source/control/itemdel.cxx
+++ b/sfx2/source/control/itemdel.cxx
@@ -59,6 +59,10 @@ void SfxItemDisruptor_Impl::LaunchDeleteOnIdle()
SfxItemDisruptor_Impl::~SfxItemDisruptor_Impl()
{
m_Idle.Stop();
+
+ // reset RefCount (was set to SFX_ITEMS_SPECIAL before!)
+ pItem->SetRefCount( 0 );
+
delete pItem;
}