diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 0dc4b38dab6e..dd843e83e68d 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3589,6 +3589,9 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char if (bInitialized) return 1; + if (eStage == PRE_INIT) + rtl_alloc_preInit(sal_True); + if (eStage != SECOND_INIT) comphelper::LibreOfficeKit::setActive(); @@ -3729,6 +3732,10 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char fprintf(stderr, "Bootstrapping exception '%s'\n", OUStringToOString(exception.Message, RTL_TEXTENCODING_UTF8).getStr()); } + + if (eStage == PRE_INIT) + rtl_alloc_preInit(sal_False); + return bInitialized; } |