From 3ece133f3ba10be21bdc6e65f9facfc9c7b05565 Mon Sep 17 00:00:00 2001 From: "Unknown (jpolast)" <dev-null@apache.org> Date: Mon, 26 Jun 2000 20:30:04 +0000 Subject: [PATCH] check if initialized in Terminate() to stop access violations submitted by John_Roper@iOra.com git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172219 13f79535-47bb-0310-9956-ffa450edef68 --- src/util/PlatformUtils.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util/PlatformUtils.cpp b/src/util/PlatformUtils.cpp index d26c6c5d3..ffbafc64b 100644 --- a/src/util/PlatformUtils.cpp +++ b/src/util/PlatformUtils.cpp @@ -56,6 +56,10 @@ /* * $Log$ + * 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::Initialize() void XMLPlatformUtils::Terminate() { + + if (!gInitFlag) + return; + // Delete any net accessor that got installed delete fgNetAccessor; fgNetAccessor = 0; -- GitLab