[Libreoffice-commits] core.git: svl/qa

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Sat May 9 09:51:55 UTC 2020


 svl/qa/unit/items/test_itempool.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4a5399e1c413596820c1b2c98ff7a5ffb9361884
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri May 8 15:45:10 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat May 9 11:51:13 2020 +0200

    fix leak in svl unit test
    
    Change-Id: I8dc11da4e1de5c2e2831ac85dff0daeac0e0ce95
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93744
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/svl/qa/unit/items/test_itempool.cxx b/svl/qa/unit/items/test_itempool.cxx
index e08c77d01378..fc19eec64752 100644
--- a/svl/qa/unit/items/test_itempool.cxx
+++ b/svl/qa/unit/items/test_itempool.cxx
@@ -90,6 +90,8 @@ void PoolItemTest::testPool()
     CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), pImpl->maPoolItemArrays[3].size());
     pPool->Put(aNotherFour);
     CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2), pImpl->maPoolItemArrays[3].size());
+
+    SfxItemPool::Free(pPool);
 }
 
 


More information about the Libreoffice-commits mailing list