unlock mutex around lok_preload_hook

because it now instantiates some services

Change-Id: Ia4f7c2df9f8dca3334906f0b482853002666ddd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164484
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
This commit is contained in:
Noel Grandin
2024-03-07 09:00:00 +01:00
committed by Miklos Vajna
parent d8d5b385aa
commit 07ead05550
+3
View File
@@ -1981,7 +1981,10 @@ void cppuhelper::ServiceManager::preloadImplementations() {
if (std::find(aPreloaded.begin(), aPreloaded.end(), fpPreload) == aPreloaded.end())
{
aPreloaded.push_back(fpPreload);
// unlock because we may be instantiating some services here
g.unlock();
fpPreload();
g.lock();
}
}