[Libreoffice-commits] core.git: desktop/source

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 17 05:01:05 UTC 2019


 desktop/source/lib/init.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0abdf307eae9bca36b3bdc26199e208ae2c1b5fa
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Jun 14 18:38:51 2019 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Mon Jun 17 07:00:20 2019 +0200

    android: Unregistering in runLoop() is important even on Android.
    
    Otherwise we get crashes in online Kit when attempting to shutdown
    reasonably cleanly and the poll kicks in.
    
    Change-Id: I9a1744b42fec9f8ffddc6094773bda943caedf2a
    Reviewed-on: https://gerrit.libreoffice.org/74064
    Tested-by: Jenkins
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 64e3c5456aa9..23205bb7afa7 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -4692,7 +4692,7 @@ static void lo_runLoop(LibreOfficeKit* /*pThis*/,
                        LibreOfficeKitWakeCallback pWakeCallback,
                        void* pData)
 {
-#ifdef IOS // Maybe ANDROID, too?
+#if defined(IOS) || defined(ANDROID)
     Application::GetSolarMutex().acquire();
 #endif
 
@@ -4703,7 +4703,7 @@ static void lo_runLoop(LibreOfficeKit* /*pThis*/,
         Application::UpdateMainThread();
         soffice_main();
     }
-#ifdef IOS // ANDROID, too?
+#if defined(IOS) || defined(ANDROID)
     vcl::lok::unregisterPollCallbacks();
     Application::ReleaseSolarMutex();
 #endif


More information about the Libreoffice-commits mailing list