[Libreoffice-commits] core.git: sal/osl
Matthew J. Francis
mjay.francis at gmail.com
Fri Oct 3 00:19:56 PDT 2014
sal/osl/unx/thread.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 794e5c7a3f4292ac849ca993c12c7953b5e85102
Author: Matthew J. Francis <mjay.francis at gmail.com>
Date: Fri Oct 3 14:29:12 2014 +0800
Fix unbalanced new/free() -> new/delete
(Spotted while valgrinding an unrelated issue)
Change-Id: I2eab4c08e251d79f427fd01442c4dce20d7d89f0
Reviewed-on: https://gerrit.libreoffice.org/11785
Reviewed-by: David Tardon <dtardon at redhat.com>
Tested-by: David Tardon <dtardon at redhat.com>
diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx
index f23f55b..f681175 100644
--- a/sal/osl/unx/thread.cxx
+++ b/sal/osl/unx/thread.cxx
@@ -166,7 +166,7 @@ static void osl_thread_destruct_Impl (Thread_Impl ** ppImpl)
pthread_cond_destroy (&((*ppImpl)->m_Cond));
pthread_mutex_destroy (&((*ppImpl)->m_Lock));
- free (*ppImpl);
+ delete *ppImpl;
(*ppImpl) = 0;
}
}
More information about the Libreoffice-commits
mailing list