From aba5d639c4b674d7fd1771bf553518913cec4499 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 May 2021 12:51:47 +0200 Subject: fix leak in toolkit test Change-Id: I6d3aa0fca6f48145c9c3b4e7d41a486fae026f06 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116099 Tested-by: Jenkins Reviewed-by: Noel Grandin --- toolkit/qa/cppunit/Dialog.cxx | 1 + toolkit/qa/cppunit/EventContainer.cxx | 2 ++ 2 files changed, 3 insertions(+) (limited to 'toolkit') diff --git a/toolkit/qa/cppunit/Dialog.cxx b/toolkit/qa/cppunit/Dialog.cxx index 5f02c58bee61..6ddf3f725840 100644 --- a/toolkit/qa/cppunit/Dialog.cxx +++ b/toolkit/qa/cppunit/Dialog.cxx @@ -66,6 +66,7 @@ CPPUNIT_TEST_FIXTURE(DialogTest, testDialogSizeable) xDialog->endExecute(); css::uno::Reference(xDialog, css::uno::UNO_QUERY_THROW)->dispose(); + css::uno::Reference(xControlModel, css::uno::UNO_QUERY_THROW)->dispose(); } } diff --git a/toolkit/qa/cppunit/EventContainer.cxx b/toolkit/qa/cppunit/EventContainer.cxx index 97a125c60824..e5921f2fe404 100644 --- a/toolkit/qa/cppunit/EventContainer.cxx +++ b/toolkit/qa/cppunit/EventContainer.cxx @@ -76,6 +76,8 @@ CPPUNIT_TEST_FIXTURE(EventContainerTest, testInsertOrder) CPPUNIT_ASSERT_EQUAL(OUString("a"), aEventNames[1]); CPPUNIT_ASSERT_EQUAL(OUString("1"), aEventNames[2]); CPPUNIT_ASSERT_EQUAL(OUString("A"), aEventNames[3]); + + css::uno::Reference(xControlModel, css::uno::UNO_QUERY_THROW)->dispose(); } } -- cgit