sal/osl/unx/thread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 794e5c7a3f4292ac849ca993c12c7953b5e85102 Author: Matthew J. Francis <mjay.fran...@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 <dtar...@redhat.com> Tested-by: David Tardon <dtar...@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; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits