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:
@@ -98,6 +98,7 @@ public:
|
|||||||
aVec.insert(p3);
|
aVec.insert(p3);
|
||||||
aVec.DeleteAndDestroyAll();
|
aVec.DeleteAndDestroyAll();
|
||||||
CPPUNIT_ASSERT( aVec.size() == 0 );
|
CPPUNIT_ASSERT( aVec.size() == 0 );
|
||||||
|
delete p4;
|
||||||
}
|
}
|
||||||
|
|
||||||
void testInsertRange()
|
void testInsertRange()
|
||||||
@@ -131,6 +132,7 @@ public:
|
|||||||
|
|
||||||
CPPUNIT_ASSERT( aVec.lower_bound(p1) == aVec.begin() );
|
CPPUNIT_ASSERT( aVec.lower_bound(p1) == aVec.begin() );
|
||||||
CPPUNIT_ASSERT( aVec.lower_bound(p4) == aVec.end() );
|
CPPUNIT_ASSERT( aVec.lower_bound(p4) == aVec.end() );
|
||||||
|
delete p4;
|
||||||
}
|
}
|
||||||
|
|
||||||
void testBasics_FindPtr()
|
void testBasics_FindPtr()
|
||||||
@@ -239,6 +241,7 @@ public:
|
|||||||
|
|
||||||
aVec.DeleteAndDestroyAll();
|
aVec.DeleteAndDestroyAll();
|
||||||
CPPUNIT_ASSERT( aVec.size() == 0 );
|
CPPUNIT_ASSERT( aVec.size() == 0 );
|
||||||
|
delete p4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user