From 2447b5ef00d0e3e3cc9dabe7ab29ce0ec118d9f2 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 19 Oct 2016 17:58:08 +0300 Subject: Avoid deadlock in CppunitTest_libreofficekit_tiledrendering Change-Id: Ief6f39400381764a5f41812a045ff2477aaecaeb --- desktop/source/lib/init.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index e6a93031a8f4..ab7b557def20 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2913,7 +2913,7 @@ int lok_preinit(const char* install_path, const char* user_profile_path) static void lo_destroy(LibreOfficeKit* pThis) { - SolarMutexGuard aGuard; + SolarMutexClearableGuard aGuard; bool bSuccess = false; LibLibreOffice_Impl* pLib = static_cast(pThis); @@ -2935,6 +2935,8 @@ static void lo_destroy(LibreOfficeKit* pThis) Application::Quit(); } + aGuard.clear(); + osl_joinWithThread(pLib->maThread); osl_destroyThread(pLib->maThread); -- cgit