diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-22 17:15:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-22 17:15:56 +0200 |
commit | d967e03ace342bcc6bc0cbf39905331b1a883f30 (patch) | |
tree | 6c815b27f476eae35e7615e3ea63f86e1f2af742 /o3tl | |
parent | 278baa557d18136a2641c015f7077a5838188766 (diff) |
Fix memory leaks in test code
Change-Id: I0dbb2546f1e776ebf95b61c16ebedbce0ead4c7f
Diffstat (limited to 'o3tl')
-rw-r--r-- | o3tl/qa/test-sorted_vector.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/o3tl/qa/test-sorted_vector.cxx b/o3tl/qa/test-sorted_vector.cxx index 059c1bad208b..5090dee50569 100644 --- a/o3tl/qa/test-sorted_vector.cxx +++ b/o3tl/qa/test-sorted_vector.cxx @@ -68,6 +68,7 @@ public: CPPUNIT_ASSERT( aVec.erase(p2) == 0 ); aVec.DeleteAndDestroyAll(); + delete p1; delete p2; delete p4; } @@ -118,6 +119,9 @@ public: aVec2.insert( aVec1 ); CPPUNIT_ASSERT( aVec2.size() == 3 ); + delete p1; + delete p2; + delete p3; } void testLowerBound() @@ -134,6 +138,9 @@ public: CPPUNIT_ASSERT( aVec.lower_bound(p1) == aVec.begin() ); CPPUNIT_ASSERT( aVec.lower_bound(p4) == aVec.end() ); + delete p1; + delete p2; + delete p3; delete p4; } @@ -193,7 +200,9 @@ public: CPPUNIT_ASSERT( aVec.size() == 3 ); aVec.DeleteAndDestroyAll(); + delete p1; delete p2; + delete p2_3; delete p4; } @@ -245,6 +254,8 @@ public: aVec.DeleteAndDestroyAll(); CPPUNIT_ASSERT( aVec.size() == 0 ); + delete p1; + delete p1_3; delete p4; } |