summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-11-22 13:42:06 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-11-22 16:49:36 +0100
commitfc3993c6794e2749400755ecd032165a61d5d959 (patch)
treee2b37e78d70c1ac273c1eb939bff842a7fdc391c /test
parent937cb97e66b61fa1b9d7f667925f8acae6293922 (diff)
tdf#152014: sc_uicalc: Add unittest
Change-Id: I7be721d9409890fe1f26125f06561e85cb1ddb27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143113 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'test')
-rw-r--r--test/source/unoapi_test.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/source/unoapi_test.cxx b/test/source/unoapi_test.cxx
index a1c0580cfd61..ff566c8ffa10 100644
--- a/test/source/unoapi_test.cxx
+++ b/test/source/unoapi_test.cxx
@@ -43,6 +43,12 @@ void UnoApiTest::setUp()
void UnoApiTest::tearDown()
{
+ if (mxComponent2.is())
+ {
+ mxComponent2->dispose();
+ mxComponent2.clear();
+ }
+
if (mxComponent.is())
{
mxComponent->dispose();