o3tl/qa/test-sorted_vector.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+)
New commits: commit d967e03ace342bcc6bc0cbf39905331b1a883f30 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu May 22 17:15:20 2014 +0200 Fix memory leaks in test code Change-Id: I0dbb2546f1e776ebf95b61c16ebedbce0ead4c7f diff --git a/o3tl/qa/test-sorted_vector.cxx b/o3tl/qa/test-sorted_vector.cxx index 059c1ba..5090dee 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits