From a6856795267509aaf0b4f59a9fb3a626411d1cb6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 30 May 2022 12:24:42 +0100 Subject: cid#1504574 Resource leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make an owner for the PropertyMapEntries Change-Id: Ie915a8a312f2b24488566814ad67fdeef89b5941 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135123 Tested-by: Jenkins Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- comphelper/source/property/propertysetinfo.cxx | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/property/propertysetinfo.cxx b/comphelper/source/property/propertysetinfo.cxx index 6385965c0d56..206129c5f595 100644 --- a/comphelper/source/property/propertysetinfo.cxx +++ b/comphelper/source/property/propertysetinfo.cxx @@ -47,26 +47,6 @@ PropertySetInfo::PropertySetInfo( o3tl::span pMap ) noex } } -PropertySetInfo::PropertySetInfo(uno::Sequence const& rProps) noexcept -{ - PropertyMapEntry * pEntries(new PropertyMapEntry[rProps.getLength()]); - PropertyMapEntry * pEntry(&pEntries[0]); - for (auto const& it : rProps) - { - // check for duplicates - assert(maPropertyMap.find(it.Name) == maPropertyMap.end()); - - pEntry->maName = it.Name; - pEntry->mnHandle = it.Handle; - pEntry->maType = it.Type; - pEntry->mnAttributes = it.Attributes; - pEntry->mnMemberId = 0; - - maPropertyMap.emplace(it.Name, pEntry); - ++pEntry; - } -} - PropertySetInfo::~PropertySetInfo() noexcept { } -- cgit