Kaydet (Commit) 0273e9cd authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1229888 Resource leak

Change-Id: I5a50c23581ac31b81549cdbab038521598c2abf3
üst 3db3184d
......@@ -1470,7 +1470,10 @@ void Test::testSharedFormulaUpdateOnDBChange()
// Change the range referenced by MyRange to A1:A4.
ScDBCollection aNewDBs(m_pDoc);
bInserted = aNewDBs.getNamedDBs().insert(new ScDBData("MyRange", 0, 0, 0, 0, 3));
ScDBData* pNewData = new ScDBData("MyRange", 0, 0, 0, 0, 3);
bInserted = aNewDBs.getNamedDBs().insert(pNewData);
if (!bInserted)
delete pNewData;
CPPUNIT_ASSERT_MESSAGE("Failed to insert a new database range.", bInserted);
std::vector<ScRange> aDeleted;
......
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