peiyongz 2003/02/10 13:12:47
Modified: c/samples/DOMPrint DOMPrint.cpp
Log:
Bug#11915: Utility for freeing memory
Revision Changes Path
1.56 +2 -2 xml-xerces/c/samples/DOMPrint/DOMPrint.cpp
Index: DOMPrint.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/DOMPrint/DOMPrint.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- DOMPrint.cpp 10 Feb 2003 20:49:04 -0000 1.55
+++ DOMPrint.cpp 10 Feb 2003 21:12:46 -0000 1.56
@@ -169,7 +169,7 @@
static char* goutputfile = 0;
// options for DOMWriter's features
-static const XMLCh* gOutputEncoding = 0;
+static XMLCh* gOutputEncoding = 0;
static bool gSplitCdataSections = true;
static bool gDiscardDefaultContent = true;
@@ -564,7 +564,7 @@
// And call the termination method
XMLPlatformUtils::Terminate();
- delete (void *)gOutputEncoding; // const problems.
+ XMLString::release(&gOutputEncoding);
return retval;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]