Kaydet (Commit) c4151c05 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity#1298899, resource leak

Change-Id: I2bf0df28c23af19bf417e70a0039c7bdccefd6cf
üst ac3bc7cc
......@@ -2437,7 +2437,7 @@ void testCustomIconSetsXLSX_Impl(ScDocument& rDoc, SCCOL nCol, SCROW nRow, ScIco
CPPUNIT_ASSERT(pEntry);
CPPUNIT_ASSERT_EQUAL(condformat::ICONSET, pEntry->GetType());
const ScIconSetFormat* pIconSet = static_cast<const ScIconSetFormat*>(pEntry);
ScIconSetInfo* pInfo = pIconSet->GetIconSetInfo(ScAddress(nCol, nRow, 1));
std::unique_ptr<ScIconSetInfo> pInfo(pIconSet->GetIconSetInfo(ScAddress(nCol, nRow, 1)));
if (nIndex == -1)
CPPUNIT_ASSERT(!pInfo);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment