From 794e5c7a3f4292ac849ca993c12c7953b5e85102 Mon Sep 17 00:00:00 2001 From: "Matthew J. Francis" Date: Fri, 3 Oct 2014 14:29:12 +0800 Subject: 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 Tested-by: David Tardon --- sal/osl/unx/thread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal') diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx index f23f55bdee7c..f681175081bc 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; } } -- cgit