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

coverity#1229887 Resource leak

Change-Id: I5f8ac14892682490d8cc93266368419107376206
üst 0273e9cd
......@@ -1449,6 +1449,8 @@ void Test::testSharedFormulaUpdateOnDBChange()
// Define database range 'MyRange' for A1:A2.
ScDBData* pData = new ScDBData("MyRange", 0, 0, 0, 0, 1);
bool bInserted = pDBs->getNamedDBs().insert(pData);
if (!bInserted)
delete pData;
CPPUNIT_ASSERT_MESSAGE("Failed to insert a new database range.", bInserted);
// Insert in C2:C4 a group of formula cells that reference MyRange.
......
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