summaryrefslogtreecommitdiff
path: root/o3tl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-05-08 00:37:04 +0200
committerNoel Power <noel.power@suse.com>2013-05-08 08:37:06 +0000
commitdc5bb7dfa70967e3445e5427168e4103e86b129c (patch)
treec7a00014041041a6f601fca7d2fcea095a16a25a /o3tl
parent4d52f70467eadd09f61efa59a85a267dab0aa580 (diff)
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>
Diffstat (limited to 'o3tl')
-rw-r--r--o3tl/qa/test-sorted_vector.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/o3tl/qa/test-sorted_vector.cxx b/o3tl/qa/test-sorted_vector.cxx
index 8e9e719f2c1d..ee2e818a555e 100644
--- a/o3tl/qa/test-sorted_vector.cxx
+++ b/o3tl/qa/test-sorted_vector.cxx
@@ -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;
}