From 8143a2023fc28e3694dd884ddd64d297eb1ce71c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 12 Aug 2020 12:05:58 +0200 Subject: expand out DELETEZ in sfx2 Change-Id: Iced9299be454f5260582b0b639aad8e5d362d730 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100620 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/explorer/nochaos.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sfx2/source/explorer') diff --git a/sfx2/source/explorer/nochaos.cxx b/sfx2/source/explorer/nochaos.cxx index 10e4c30bd0b4..33f219e3247e 100644 --- a/sfx2/source/explorer/nochaos.cxx +++ b/sfx2/source/explorer/nochaos.cxx @@ -145,8 +145,10 @@ sal_uInt16 CntItemPool::Release() if ( !nRefs ) { - DELETEZ( _pThePool ); - DELETEZ( pPoolDefs_Impl ); + delete _pThePool; + _pThePool = nullptr; + delete pPoolDefs_Impl; + pPoolDefs_Impl = nullptr; return 0; } -- cgit