From 0afb2b63b38dff138e66f4ac8afed60911cb6aad Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 10 May 2021 14:14:49 +0200 Subject: fix some leaks in basic Change-Id: I52c10cdbe9661974c908ee052336c779a40de402 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115323 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/classes/image.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic/source/classes/image.cxx') diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index ea93303e41c8..52aee6636c79 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -308,8 +308,8 @@ bool SbiImage::Load( SvStream& r, sal_uInt32& nVersion ) SbxObject* pNestedTypeObj = static_cast< SbxObject* >( rTypes->Find( aNestedTypeName, SbxClassType::Object ) ); if (pNestedTypeObj) { - SbxObject* pCloneObj = cloneTypeObjectImpl( *pNestedTypeObj ); - pTypeElem->PutObject( pCloneObj ); + SbxObjectRef pCloneObj = cloneTypeObjectImpl( *pNestedTypeObj ); + pTypeElem->PutObject( pCloneObj.get() ); } } else -- cgit