cargilld 2005/04/04 08:03:44 Modified: c/src/xercesc/validators/schema ComplexTypeInfo.cpp Log: Fix memory leak when deserializing grammars. Revision Changes Path 1.34 +5 -0 xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.cpp Index: ComplexTypeInfo.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/ComplexTypeInfo.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- ComplexTypeInfo.cpp 7 Mar 2005 20:10:21 -0000 1.33 +++ ComplexTypeInfo.cpp 4 Apr 2005 15:03:44 -0000 1.34 @@ -16,6 +16,9 @@ /* * $Log$ + * Revision 1.34 2005/04/04 15:03:44 cargilld + * Fix memory leak when deserializing grammars. + * * Revision 1.33 2005/03/07 20:10:21 knoaman * Eliminate lazy creation of attribute lists. * @@ -1079,6 +1082,7 @@ serEng>>fBaseComplexTypeInfo; serEng>>fContentSpec; serEng>>fAttWildCard; + delete fAttList; // will recreate it next... serEng>>fAttList; /*** @@ -1087,6 +1091,7 @@ * Deserialize RefHash2KeysTableOf<SchemaAttDef>* fAttDefs; ***/ XTemplateSerializer::loadObject(&fElements, 8, false, serEng); + delete fAttDefs; // will recreate it next... XTemplateSerializer::loadObject(&fAttDefs, 29, true, serEng); /***
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]