coverity#983036/37/38: Resource leak

Change-Id: I8a2c079a60cc06ca82d9f516cf009359a0c083a7
Reviewed-on: https://gerrit.libreoffice.org/3819
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
This commit is contained in:
Julien Nabet 2013-05-08 00:37:04 +02:00 committed by Noel Power
parent 4d52f70467
commit dc5bb7dfa7

View File

@ -98,6 +98,7 @@ public:
aVec.insert(p3);
aVec.DeleteAndDestroyAll();
CPPUNIT_ASSERT( aVec.size() == 0 );
delete p4;
}
void testInsertRange()
@ -131,6 +132,7 @@ public:
CPPUNIT_ASSERT( aVec.lower_bound(p1) == aVec.begin() );
CPPUNIT_ASSERT( aVec.lower_bound(p4) == aVec.end() );
delete p4;
}
void testBasics_FindPtr()
@ -239,6 +241,7 @@ public:
aVec.DeleteAndDestroyAll();
CPPUNIT_ASSERT( aVec.size() == 0 );
delete p4;
}