You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jp...@locus.apache.org on 2000/06/26 22:30:07 UTC
cvs commit: xml-xerces/c/src/util PlatformUtils.cpp
jpolast 00/06/26 13:30:06
Modified: c/src/util PlatformUtils.cpp
Log:
check if initialized in Terminate() to stop access violations
submitted by John_Roper@iOra.com
Revision Changes Path
1.9 +10 -0 xml-xerces/c/src/util/PlatformUtils.cpp
Index: PlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/PlatformUtils.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- PlatformUtils.cpp 2000/05/09 00:22:40 1.8
+++ PlatformUtils.cpp 2000/06/26 20:30:04 1.9
@@ -56,6 +56,10 @@
/*
* $Log: PlatformUtils.cpp,v $
+ * Revision 1.9 2000/06/26 20:30:04 jpolast
+ * check if initialized in Terminate() to stop access violations
+ * submitted by John_Roper@iOra.com
+ *
* Revision 1.8 2000/05/09 00:22:40 andyh
* Memory Cleanup. XMLPlatformUtils::Terminate() deletes all lazily
* allocated memory; memory leak checking tools will no longer report
@@ -196,6 +200,10 @@
void XMLPlatformUtils::Terminate()
{
+
+ if (!gInitFlag)
+ return;
+
// Delete any net accessor that got installed
delete fgNetAccessor;
fgNetAccessor = 0;