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 2004/03/04 00:04:17 UTC

cvs commit: xml-xerces/c/src/xercesc/validators/schema XMLSchemaDescriptionImpl.cpp

peiyongz    2004/03/03 15:04:17

  Modified:    c/src/xercesc/validators/schema XMLSchemaDescriptionImpl.cpp
  Log:
  deallocate fNamespace when loaded
  
  Revision  Changes    Path
  1.7       +10 -1     xml-xerces/c/src/xercesc/validators/schema/XMLSchemaDescriptionImpl.cpp
  
  Index: XMLSchemaDescriptionImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/XMLSchemaDescriptionImpl.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XMLSchemaDescriptionImpl.cpp	24 Dec 2003 15:24:16 -0000	1.6
  +++ XMLSchemaDescriptionImpl.cpp	3 Mar 2004 23:04:17 -0000	1.7
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.7  2004/03/03 23:04:17  peiyongz
  + * deallocate fNamespace when loaded
  + *
    * Revision 1.6  2003/12/24 15:24:16  cargilld
    * More updates to memory management so that the static memory manager.
    *
  @@ -244,6 +247,12 @@
           serEng>>i;
   
           fContextType = (ContextType)i;       
  +
  +        //the original fNamespace which came from the ctor needs deallocated
  +        if (fNamespace)
  +        {
  +            XMLGrammarDescription::getMemoryManager()->deallocate((void*)fNamespace);
  +        }
           serEng.readString((XMLCh*&)fNamespace);
   
           /***
  
  
  

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