tng 2003/01/29 14:35:31
Modified: c/src/xercesc/validators/schema ComplexTypeInfo.hpp
Log:
Set pointer to null after delete.
Revision Changes Path
1.10 +6 -4 xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.hpp
Index: ComplexTypeInfo.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.hpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ComplexTypeInfo.hpp 29 Jan 2003 19:57:30 -0000 1.9
+++ ComplexTypeInfo.hpp 29 Jan 2003 22:35:31 -0000 1.10
@@ -397,7 +397,7 @@
return fAnonymous;
}
-inline const XMLCh* ComplexTypeInfo::getTypeLocalName() const
+inline const XMLCh* ComplexTypeInfo::getTypeLocalName() const
{
if(!fTypeLocalName) {
int index = XMLString::indexOf(fTypeName, chComma);
@@ -412,7 +412,7 @@
inline const XMLCh* ComplexTypeInfo::getTypeUri() const
{
-
+
if(!fTypeUri) {
int index = XMLString::indexOf(fTypeName, chComma);
int length = XMLString::stringLen(fTypeName);
@@ -482,7 +482,9 @@
delete [] fTypeName;
delete [] fTypeLocalName;
- delete [] fTypeLocalName;
+ fTypeLocalName = 0;
+ delete [] fTypeUri;
+ fTypeUri = 0;
fTypeName = XMLString::replicate(typeName);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]