axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapSerializer.cpp
Date Sun, 09 Jan 2005 12:20:35 GMT
roshan      2005/01/09 04:20:35

  Modified:    c/src/soap SoapSerializer.cpp
  Log:
  added cleanup of SoapAttachments to the Destructor
  
  Revision  Changes    Path
  1.84      +13 -0     ws-axis/c/src/soap/SoapSerializer.cpp
  
  Index: SoapSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapSerializer.cpp,v
  retrieving revision 1.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- SoapSerializer.cpp	7 Jan 2005 08:55:19 -0000	1.83
  +++ SoapSerializer.cpp	9 Jan 2005 12:20:35 -0000	1.84
  @@ -21,6 +21,10 @@
    *
    */
   
  +/*
  + * Revision 1.1  2005/01/09 Roshan
  + * Added cleanup of SoapAttachments to the Destructor.
  + */
   
   #ifdef WIN32
   #pragma warning (disable : 4786)
  @@ -54,6 +58,15 @@
   SoapSerializer::~SoapSerializer()
   {
       if (m_pSoapEnvelope) delete m_pSoapEnvelope;
  +
  +	/* Cleaning the memory allocated to the SoapAttachments */       
  +	map<AxisXMLString, ISoapAttachment*>::iterator itCurrAttach= m_SoapAttachments.begin();
  +	while(itCurrAttach != m_SoapAttachments.end())
  +    {        
  +        delete ((SoapAttachment*)((*itCurrAttach).second));		
  +
  +        itCurrAttach++;
  +    }
   }
   
   int SoapSerializer::setSoapEnvelope(SoapEnvelope *pSoapEnvelope)
  
  
  

Mime
View raw message