coverity#1229887 Resource leak

Change-Id: I5f8ac14892682490d8cc93266368419107376206
This commit is contained in:
Caolán McNamara
2014-08-07 12:20:25 +01:00
parent 0273e9cde0
commit f7f943d71f

View File

@@ -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.