summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-10-22 14:11:39 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-10-22 16:33:15 +0200
commit6c9909dee4b06948ca6932397caa338d77ec7290 (patch)
treef0cc0bee4d6536814419cfd9787792b4ce8a86b9 /sal
parentbb2e861827cb854dd380d2b7ac3d8907de7043d7 (diff)
fix std::unique_lock unlocking
std: :unique_lock::release() does not unlock. Change-Id: Ida5a28a8b1c275a0a702121bf00faeaf76a57426 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124063 Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/backtraceapi.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/backtraceapi.cxx b/sal/osl/unx/backtraceapi.cxx
index d67806d9268b..bd8db79e0181 100644
--- a/sal/osl/unx/backtraceapi.cxx
+++ b/sal/osl/unx/backtraceapi.cxx
@@ -206,7 +206,7 @@ OUString sal::backtrace_to_string(BacktraceState* backtraceState)
void* addr = backtraceState->buffer[i];
std::unique_lock guard(frameCacheMutex);
auto it = frameCache.find(addr);
- guard.release();
+ guard.unlock();
if( it != frameCache.end())
{
frameData[ i ].info = it->second;