From 1284937bf2bd112197a99e844a5a1a961e2cf4fc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 20 Jan 2022 09:23:01 +0000 Subject: ofz#43689 Direct-Leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I09823f30817163b0467b6b96f56956987337b991 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128646 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- lotuswordpro/source/filter/lwpsdwgrouploaderv0102.cxx | 8 ++++---- lotuswordpro/source/filter/lwpsdwgrouploaderv0102.hxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwpsdwgrouploaderv0102.cxx b/lotuswordpro/source/filter/lwpsdwgrouploaderv0102.cxx index 47362c809892..916531a8d624 100644 --- a/lotuswordpro/source/filter/lwpsdwgrouploaderv0102.cxx +++ b/lotuswordpro/source/filter/lwpsdwgrouploaderv0102.cxx @@ -234,7 +234,7 @@ void LwpSdwGroupLoaderV0102::BeginDrawObjects(std::vector< rtl::Reference LwpSdwGroupLoaderV0102::CreateDrawGroupObject() { //flag unsigned char BinSignature[2]; @@ -263,7 +263,7 @@ XFDrawGroup* LwpSdwGroupLoaderV0102::CreateDrawGroupObject() // fileSize m_pStream->SeekRel(2); - XFDrawGroup* pXFDrawGroup = new XFDrawGroup(); + rtl::Reference xXFDrawGroup(new XFDrawGroup()); if (nRecCount > m_pStream->remainingSize()) { @@ -284,12 +284,12 @@ XFDrawGroup* LwpSdwGroupLoaderV0102::CreateDrawGroupObject() } else { - pXFDrawGroup->Add(xXFDrawObj.get()); + xXFDrawGroup->Add(xXFDrawObj.get()); } } } - return pXFDrawGroup; + return xXFDrawGroup; } /** diff --git a/lotuswordpro/source/filter/lwpsdwgrouploaderv0102.hxx b/lotuswordpro/source/filter/lwpsdwgrouploaderv0102.hxx index b0e5b21072bb..d9d63e8424b3 100644 --- a/lotuswordpro/source/filter/lwpsdwgrouploaderv0102.hxx +++ b/lotuswordpro/source/filter/lwpsdwgrouploaderv0102.hxx @@ -83,7 +83,7 @@ public: public: void BeginDrawObjects(std::vector>* pDrawObjVector); - XFDrawGroup* CreateDrawGroupObject(); + rtl::Reference CreateDrawGroupObject(); rtl::Reference CreateDrawObject(); }; -- cgit