xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cargi...@apache.org
Subject cvs commit: xml-xerces/c/src/xercesc/internal SGXMLScanner.cpp
Date Wed, 11 Feb 2004 12:43:44 GMT
cargilld    2004/02/11 04:43:44

  Modified:    c/src/xercesc/internal SGXMLScanner.cpp
  Log:
  Fix for bug 26648 from David Bertoni.
  
  Revision  Changes    Path
  1.76      +3 -3      xml-xerces/c/src/xercesc/internal/SGXMLScanner.cpp
  
  Index: SGXMLScanner.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/SGXMLScanner.cpp,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- SGXMLScanner.cpp	29 Jan 2004 11:46:30 -0000	1.75
  +++ SGXMLScanner.cpp	11 Feb 2004 12:43:44 -0000	1.76
  @@ -3713,6 +3713,8 @@
   void SGXMLScanner::parseSchemaLocation(const XMLCh* const schemaLocationStr)
   {
       BaseRefVectorOf<XMLCh>* schemaLocation = XMLString::tokenizeString(schemaLocationStr,
fMemoryManager);
  +    ArrayJanitor<BaseRefVectorOf<XMLCh> > janLoc(schemaLocation, fMemoryManager);
  +
       unsigned int size = schemaLocation->size();
       if (size % 2 != 0 ) {
           emitError(XMLErrs::BadSchemaLocation);
  @@ -3721,8 +3723,6 @@
               resolveSchemaGrammar(schemaLocation->elementAt(i+1), schemaLocation->elementAt(i));
           }
       }
  -
  -    delete schemaLocation;
   }
   
   void SGXMLScanner::resolveSchemaGrammar(const XMLCh* const loc, const XMLCh* const uri)
{
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org


Mime
View raw message