[Libreoffice-commits] core.git: toolkit/qa
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 25 12:11:47 UTC 2021
toolkit/qa/cppunit/Dialog.cxx | 1 +
toolkit/qa/cppunit/EventContainer.cxx | 2 ++
2 files changed, 3 insertions(+)
New commits:
commit aba5d639c4b674d7fd1771bf553518913cec4499
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue May 25 12:51:47 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue May 25 14:11:08 2021 +0200
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 at collabora.co.uk>
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();
}
}
More information about the Libreoffice-commits
mailing list