You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by cd...@apache.org on 2005/06/30 10:46:03 UTC

cvs commit: ws-axis/c/src/soap SoapMethod.cpp

cdinapala    2005/06/30 01:46:03

  Modified:    c/src/soap SoapMethod.cpp
  Log:
  Changes have done to provide solution to the issue AXISCPP-359.
  
  Revision  Changes    Path
  1.34      +12 -2     ws-axis/c/src/soap/SoapMethod.cpp
  
  Index: SoapMethod.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapMethod.cpp,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- SoapMethod.cpp	9 Jun 2005 05:05:54 -0000	1.33
  +++ SoapMethod.cpp	30 Jun 2005 08:46:03 -0000	1.34
  @@ -32,13 +32,22 @@
   
   SoapMethod::~SoapMethod()
   {
  -    for (list<Attribute*>::iterator it = m_attributes.begin();
  +    /*for (list<Attribute*>::iterator it = m_attributes.begin();
            it != m_attributes.end(); it++)
       {
           delete (*it);
  +    }*/
  +	list<Attribute*>::iterator it;
  +	for (it = m_attributes.begin();
  +    it != m_attributes.end(); it++)
  +    {
  +		if(*it)
  +			delete (*it);
       }
   
       clearOutParams();
  +	m_attributes.clear();
  +
   }
   
   void SoapMethod::setPrefix(const AxisChar* prefix)
  @@ -210,7 +219,8 @@
       for (itParam = m_OutputParams.begin(); 
            itParam != m_OutputParams.end(); itParam++)
       {
  -        delete (*itParam);
  +		if(*itParam)
  +			delete (*itParam);
       }
       m_OutputParams.clear();
   }