sal/osl/unx/backtraceapi.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6c9909dee4b06948ca6932397caa338d77ec7290
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Fri Oct 22 14:11:39 2021 +0200
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Fri Oct 22 16:33:15 2021 +0200

    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.vers...@libreoffice.org>
    Tested-by: Jenkins

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;

Reply via email to