summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objxtor.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-08-12 12:05:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-13 08:18:20 +0200
commit8143a2023fc28e3694dd884ddd64d297eb1ce71c (patch)
treef1d1ea2d0a8218fc373653d5d8d92147ff28e7a0 /sfx2/source/doc/objxtor.cxx
parent8ce3647224c9aae6425dcb199d2b83de2359665c (diff)
expand out DELETEZ in sfx2
Change-Id: Iced9299be454f5260582b0b639aad8e5d362d730 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100620 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc/objxtor.cxx')
-rw-r--r--sfx2/source/doc/objxtor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index fb5a1677d6d2..7dd8276eb20c 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -324,7 +324,8 @@ SfxObjectShell::~SfxObjectShell()
if (IsDocShared())
FreeSharedFile( pMedium->GetURLObject().GetMainURL( INetURLObject::DecodeMechanism::NONE ) );
#endif
- DELETEZ( pMedium );
+ delete pMedium;
+ pMedium = nullptr;
}
// The removing of the temporary file must be done as the latest step in the document destruction