susantha    2003/08/15 00:54:44

  Modified:    c/src/soap SoapMethod.cpp
  Log:
  some changes that fixes a memory leak
  
  Revision  Changes    Path
  1.8       +8 -4      xml-axis/c/src/soap/SoapMethod.cpp
  
  Index: SoapMethod.cpp
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/soap/SoapMethod.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SoapMethod.cpp    27 Jul 2003 06:56:39 -0000      1.7
  +++ SoapMethod.cpp    15 Aug 2003 07:54:44 -0000      1.8
  @@ -86,23 +86,27 @@
                delete *itCurrInputParam;
                itCurrInputParam++;
        }
  -
        m_inputParams.clear();
  +     for (list<Attribute*>::iterator it = m_attributes.begin(); it != 
m_attributes.end(); it++)
  +     {
  +             delete (*it);
  +     }
  +     if (m_pOutputParam) delete m_pOutputParam;
   }
   
   void SoapMethod::setPrefix(const string &prefix)
   {
  -     m_strPrefix= prefix;
  +     m_strPrefix = prefix.c_str();
   }
   
   void SoapMethod::setLocalName(const string &localname)
   {
  -     m_strLocalname= localname;
  +     m_strLocalname = localname.c_str();
   }
   
   void SoapMethod::setUri(const string &uri)
   {
  -     m_strUri= uri;
  +     m_strUri = uri.c_str();
   }
   
   void SoapMethod::addInputParam(Param *param)
  
  
  

Reply via email to