You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2003/08/07 07:29:08 UTC
cvs commit: xml-xalan/c/src/xalanc/PlatformSupport URISupport.cpp
dbertoni 2003/08/06 22:29:08
Modified: c/src/xalanc/PlatformSupport URISupport.cpp
Log:
Make sure memory is deallocated by the appropriate memory manager. Fixes Bugzilla 22196.
Revision Changes Path
1.2 +3 -1 xml-xalan/c/src/xalanc/PlatformSupport/URISupport.cpp
Index: URISupport.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/PlatformSupport/URISupport.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- URISupport.cpp 29 Jun 2003 03:57:55 -0000 1.1
+++ URISupport.cpp 7 Aug 2003 05:29:08 -0000 1.2
@@ -63,6 +63,7 @@
+#include <xercesc/util/Janitor.hpp>
#include <xercesc/util/PlatformUtils.hpp>
@@ -157,10 +158,11 @@
}
else
{
+ XALAN_USING_XERCES(ArrayJanitor)
XALAN_USING_XERCES(XMLPlatformUtils)
// Assume it's a file specification...
- const XalanArrayAutoPtr<XalanDOMChar> theFullPathGuard(XMLPlatformUtils::getFullPath(c_wstr(urlString)));
+ const ArrayJanitor<XMLCh> theFullPathGuard(XMLPlatformUtils::getFullPath(c_wstr(urlString)), XMLPlatformUtils::fgMemoryManager);
const XalanDOMChar* const theFullPath = theFullPathGuard.get();
assert(theFullPath != 0);
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org