Kaydet (Commit) 9e05463f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Only access pGlobalOfficeIPCThread & mpDispatchWatcher with GetMutex locked

Change-Id: Ia8093525935b02a019bbecd81a087af54471c592
üst 2765717b
......@@ -1068,6 +1068,8 @@ bool OfficeIPCThread::ExecuteCmdLineRequests(
{
pGlobalOfficeIPCThread->mpDispatchWatcher = new DispatchWatcher;
}
rtl::Reference<DispatchWatcher> dispatchWatcher(
pGlobalOfficeIPCThread->mpDispatchWatcher);
// copy for execute
std::vector<DispatchWatcher::DispatchRequest> aTempList( aDispatchList );
......@@ -1076,7 +1078,7 @@ bool OfficeIPCThread::ExecuteCmdLineRequests(
aGuard.clear();
// Execute dispatch requests
bShutdown = pGlobalOfficeIPCThread->mpDispatchWatcher->executeDispatchRequests( aTempList, noTerminate);
bShutdown = dispatchWatcher->executeDispatchRequests( aTempList, noTerminate);
// set processed flag
if (aRequest.pcProcessed != nullptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment