You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/10/09 14:14:03 UTC
cvs commit: xml-xerces/c/samples/DOMPrint DOMPrint.cpp
tng 01/10/09 05:14:03
Modified: c/samples/DOMPrint DOMPrint.cpp
Log:
Leak fix: should use delete [] to delete gEncodingName.
Revision Changes Path
1.34 +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.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- DOMPrint.cpp 2001/08/01 19:11:01 1.33
+++ DOMPrint.cpp 2001/10/09 12:14:03 1.34
@@ -55,7 +55,7 @@
*/
/*
- * $Id: DOMPrint.cpp,v 1.33 2001/08/01 19:11:01 tng Exp $
+ * $Id: DOMPrint.cpp,v 1.34 2001/10/09 12:14:03 tng Exp $
*/
@@ -518,7 +518,7 @@
delete gFormatter;
}
- delete gEncodingName;
+ delete [] gEncodingName;
//
// Clean up the error handler. The parser does not adopt handlers
// since they could be many objects or one object installed for multiple
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org