diff options
Diffstat (limited to 'binaryurp')
-rw-r--r-- | binaryurp/source/reader.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/binaryurp/source/reader.cxx b/binaryurp/source/reader.cxx index c40aeadea7df..fa5e91be704e 100644 --- a/binaryurp/source/reader.cxx +++ b/binaryurp/source/reader.cxx @@ -335,8 +335,9 @@ void Reader::readMessage(Unmarshal & unmarshal) { bridge_->incrementActiveCalls(); } uno_threadpool_putJob( - bridge_->getThreadPool(), tid.getHandle(), req.release(), &request, + bridge_->getThreadPool(), tid.getHandle(), req.get(), &request, !synchronous); + req.release(); } } @@ -442,8 +443,9 @@ void Reader::readReplyMessage(Unmarshal & unmarshal, sal_uInt8 flags1) { std::unique_ptr< IncomingReply > resp( new IncomingReply(exc, ret, outArgs)); uno_threadpool_putJob( - bridge_->getThreadPool(), tid.getHandle(), resp.release(), nullptr, + bridge_->getThreadPool(), tid.getHandle(), resp.get(), nullptr, false); + resp.release(); break; } case OutgoingRequest::KIND_REQUEST_CHANGE: |