You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2003/11/05 19:20:20 UTC

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

peiyongz    2003/11/05 10:20:20

  Modified:    c/src/xercesc/internal XMLGrammarPoolImpl.cpp
  Log:
  cleanup deserialized grammars if exception thrown during loading
  
  Revision  Changes    Path
  1.9       +5 -1      xml-xerces/c/src/xercesc/internal/XMLGrammarPoolImpl.cpp
  
  Index: XMLGrammarPoolImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XMLGrammarPoolImpl.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- XMLGrammarPoolImpl.cpp	29 Oct 2003 16:16:08 -0000	1.8
  +++ XMLGrammarPoolImpl.cpp	5 Nov 2003 18:20:20 -0000	1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.9  2003/11/05 18:20:20  peiyongz
  + * cleanup deserialized grammars if exception thrown during loading
  + *
    * Revision 1.8  2003/10/29 16:16:08  peiyongz
    * GrammarPool' serialization/deserialization support
    *
  @@ -368,6 +371,7 @@
       }
       catch(...)
       {
  +        clear();  //clear all deserialized grammars
           fLocked = false;
           throw;
       }
  
  
  

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