You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2004/07/12 15:36:13 UTC

cvs commit: xml-xerces/c/src/xercesc/internal IGXMLScanner2.cpp

cargilld    2004/07/12 06:36:13

  Modified:    c/src/xercesc/internal IGXMLScanner2.cpp
  Log:
  IGXMLScanner::fErrorStack not cleared if an exception is thrown.  Patch from David Bertoni.
  
  Revision  Changes    Path
  1.67      +7 -1      xml-xerces/c/src/xercesc/internal/IGXMLScanner2.cpp
  
  Index: IGXMLScanner2.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/IGXMLScanner2.cpp,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- IGXMLScanner2.cpp	6 Jul 2004 15:57:55 -0000	1.66
  +++ IGXMLScanner2.cpp	12 Jul 2004 13:36:13 -0000	1.67
  @@ -1283,7 +1283,13 @@
           fPSVIElement = new (fMemoryManager) PSVIElement(fMemoryManager);
   
       if (!fErrorStack)
  +    {
           fErrorStack = new (fMemoryManager) ValueStackOf<bool>(8, fMemoryManager);
  +    }
  +    else
  +    {
  +        fErrorStack->removeAllElements();
  +    }
   
       resetPSVIElemContext();
   
  
  
  

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