diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-28 22:33:29 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-29 22:00:48 -0400 |
commit | 9832a2482f157d34f7323327dc20eaf5e11da3fd (patch) | |
tree | 6e03b6b7eb4f6144184007486aa6797802cb04db /unotest | |
parent | ad9e67a7c08f9ceb3b4c228e3d9241c4ed54a7c8 (diff) |
Detach all DocBasicItem objects upon process termination.
To prevent rogue DocBasicItem objects (which are global objects) from
attempting to stop listening after the main app is dead.
Change-Id: I68a667137ca4e0eff18278f4d2d5dd67466eaf34
(cherry picked from commit a916b6ff7fdf1bcb1182e72e4a5bf2f901c698da)
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/Library_unotest.mk | 1 | ||||
-rw-r--r-- | unotest/source/cpp/bootstrapfixturebase.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/unotest/Library_unotest.mk b/unotest/Library_unotest.mk index cfc6fc197002..3f9d99b6f0a3 100644 --- a/unotest/Library_unotest.mk +++ b/unotest/Library_unotest.mk @@ -21,6 +21,7 @@ $(eval $(call gb_Library_use_libraries,unotest,\ cppu \ cppuhelper \ sal \ + sb \ $(gb_UWINAPI) \ )) diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index 87a72a725eb0..c407dc677b20 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -15,6 +15,7 @@ #include <rtl/bootstrap.hxx> #include <cppuhelper/bootstrap.hxx> #include <comphelper/processfactory.hxx> +#include <basic/sbstar.hxx> #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/lang/XComponent.hpp> @@ -105,6 +106,7 @@ void test::BootstrapFixtureBase::setUp() void test::BootstrapFixtureBase::tearDown() { + StarBASIC::DetachAllDocBasicItems(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |