You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ne...@apache.org on 2004/01/06 05:42:04 UTC

cvs commit: xml-xerces/c/src/xercesc/util XMLBigDecimal.cpp

neilg       2004/01/05 20:42:04

  Modified:    c/src/xercesc/util XMLBigDecimal.cpp
  Log:
  Since parseContent may now be called outside a constructor,
  the destructor may subsequently be invoked.  If this happens,
  an attempt will be made to delete fRawData if it is non-zero.
  Therefore, 0 it before throwing the exception after cleanUp() is called.
  
  Revision  Changes    Path
  1.20      +5 -1      xml-xerces/c/src/xercesc/util/XMLBigDecimal.cpp
  
  Index: XMLBigDecimal.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLBigDecimal.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- XMLBigDecimal.cpp	3 Jan 2004 00:03:18 -0000	1.19
  +++ XMLBigDecimal.cpp	6 Jan 2004 04:42:04 -0000	1.20
  @@ -56,6 +56,12 @@
   
   /*
    * $Log$
  + * Revision 1.20  2004/01/06 04:42:04  neilg
  + * Since parseContent may now be called outside a constructor,
  + * the destructor may subsequently be invoked.  If this happens,
  + * an attempt will be made to delete fRawData if it is non-zero.
  + * Therefore, 0 it before throwing the exception after cleanUp() is called.
  + *
    * Revision 1.19  2004/01/03 00:03:18  peiyongz
    * parseContent
    *
  @@ -209,6 +215,7 @@
       catch(...)
       {
           cleanUp();
  +        fRawData = 0;
           throw;
       }
   }
  
  
  

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