From 47fe60e0c3901a4baec2e79624e4d4da23d6fbce Mon Sep 17 00:00:00 2001
From: Tinny Ng <tng@apache.org>
Date: Wed, 1 May 2002 21:13:32 +0000
Subject: [PATCH] [Bug 7265] UnixWare port broken in platformTerm() since rev
 1.10.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173640 13f79535-47bb-0310-9956-ffa450edef68
---
 .../Platforms/UnixWare/UnixWarePlatformUtils.cpp     | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/xercesc/util/Platforms/UnixWare/UnixWarePlatformUtils.cpp b/src/xercesc/util/Platforms/UnixWare/UnixWarePlatformUtils.cpp
index c17e82f1b..da4c88afe 100644
--- a/src/xercesc/util/Platforms/UnixWare/UnixWarePlatformUtils.cpp
+++ b/src/xercesc/util/Platforms/UnixWare/UnixWarePlatformUtils.cpp
@@ -56,8 +56,11 @@
 
 /*
  * $Log$
- * Revision 1.1  2002/02/01 22:22:26  peiyongz
- * Initial revision
+ * Revision 1.2  2002/05/01 21:13:32  tng
+ * [Bug 7265] UnixWare port broken in platformTerm() since rev 1.10.
+ *
+ * Revision 1.1.1.1  2002/02/01 22:22:26  peiyongz
+ * sane_include
  *
  * Revision 1.11  2001/10/25 15:20:31  tng
  * Need to guard with NO_APP_THREADS when destroying the mutex.
@@ -738,8 +741,9 @@ void XMLPlatformUtils::platformTerm()
 {
 #if !defined (APP_NO_THREADS)
     // delete the mutex we created
-	closeMutex(gAtomicOpMutex.fHandle);
-	gAtomicOpMutex.fHandle = 0;
+	pthread_mutex_destroy(gAtomicOpMutex);
+    delete gAtomicOpMutex;
+	gAtomicOpMutex = 0;
 #endif
 }
 
-- 
GitLab