From 1ad7e537bae4d331e712172477f18a06a67b0934 Mon Sep 17 00:00:00 2001 From: James David Berry <jberry@apache.org> Date: Thu, 15 Apr 2004 15:35:14 +0000 Subject: [PATCH] Fix bug XERCESC-1195. Mac abstract files not being deleted at close causing memory leak. Patch thanks to Alberto. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175876 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp b/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp index 936f71bfe..ed1aeee9b 100644 --- a/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp +++ b/src/xercesc/util/Platforms/MacOS/MacOSPlatformUtils.cpp @@ -217,6 +217,7 @@ XMLPlatformUtils::closeFile(const FileHandle theFile , MemoryManager* const manager) { reinterpret_cast<XMLMacAbstractFile*>(theFile)->close(); + delete reinterpret_cast<XMLMacAbstractFile*>(theFile); } unsigned int -- GitLab