summaryrefslogtreecommitdiff
path: root/sfx2/source/control/itemdel.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-09-22 21:14:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-23 06:53:09 +0000
commitb74d2433c856d6d172d9588f4b6d59c31ec02853 (patch)
tree40f06f2bef1b36a542c7e69184d878bc44a66fe4 /sfx2/source/control/itemdel.cxx
parent854254c36f4c4804bb5c8fcde2edef444baed25c (diff)
don't write item right before destruction
SetRefCount writes only SfxPoolItem members m_nRefCount and m_nKind Change-Id: Ibd06d4edc619b9a840a8a232d9395dd85c452149 Reviewed-on: https://gerrit.libreoffice.org/29195 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/control/itemdel.cxx')
-rw-r--r--sfx2/source/control/itemdel.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sfx2/source/control/itemdel.cxx b/sfx2/source/control/itemdel.cxx
index 096ab3752864..23f900902af9 100644
--- a/sfx2/source/control/itemdel.cxx
+++ b/sfx2/source/control/itemdel.cxx
@@ -59,10 +59,6 @@ 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;
}