diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-25 12:51:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-25 14:11:08 +0200 |
commit | aba5d639c4b674d7fd1771bf553518913cec4499 (patch) | |
tree | 47d8947c293e05539717e001c75e00e5c13728f1 /toolkit | |
parent | b2190523e0b226bcae19cc8c3ce8a83855c7f009 (diff) |
fix leak in toolkit test
Change-Id: I6d3aa0fca6f48145c9c3b4e7d41a486fae026f06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116099
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/qa/cppunit/Dialog.cxx | 1 | ||||
-rw-r--r-- | toolkit/qa/cppunit/EventContainer.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
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<css::lang::XComponent>(xDialog, css::uno::UNO_QUERY_THROW)->dispose(); + css::uno::Reference<css::lang::XComponent>(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<css::lang::XComponent>(xControlModel, css::uno::UNO_QUERY_THROW)->dispose(); } } |