summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew J. Francis <mjay.francis@gmail.com>2014-10-03 14:29:12 +0800
committerDavid Tardon <dtardon@redhat.com>2014-10-03 07:19:34 +0000
commit794e5c7a3f4292ac849ca993c12c7953b5e85102 (patch)
tree95abc6439764cba2bd9851ac666066c883162610
parent54ae614e3f5fc86ca774126e74ef75ea877b13bd (diff)
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@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r--sal/osl/unx/thread.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}
}