axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapDeSerializer.cpp
Date Tue, 07 Sep 2004 07:28:12 GMT
samisa      2004/09/07 00:28:12

  Modified:    c/src/engine Axis.cpp
               c/src/soap SoapDeSerializer.cpp
  Log:
  Fixed memory leaks by enabling uninitialize
  
  Revision  Changes    Path
  1.68      +3 -1      ws-axis/c/src/engine/Axis.cpp
  
  Index: Axis.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/Axis.cpp,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- Axis.cpp	1 Sep 2004 08:01:07 -0000	1.67
  +++ Axis.cpp	7 Sep 2004 07:28:11 -0000	1.68
  @@ -339,8 +339,10 @@
   extern "C" int uninitialize_module ()
   {
       SOAPTransportFactory::uninitialize();
  -    //ModuleUnInitialize ();
  +    ModuleUnInitialize ();
       SoapKeywordMapping::uninitialize ();
  +    XMLParserFactory::uninitialize();
  +    SOAPTransportFactory::uninitialize();
       return AXIS_SUCCESS;
   }
   
  
  
  
  1.83      +6 -1      ws-axis/c/src/soap/SoapDeSerializer.cpp
  
  Index: SoapDeSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapDeSerializer.cpp,v
  retrieving revision 1.82
  retrieving revision 1.83
  diff -u -r1.82 -r1.83
  --- SoapDeSerializer.cpp	31 Aug 2004 05:44:36 -0000	1.82
  +++ SoapDeSerializer.cpp	7 Sep 2004 07:28:12 -0000	1.83
  @@ -19,6 +19,7 @@
    * @author Susantha Kumara (skumara@virtusa.com)
    * @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
    * @author Roshan Weerasuriya (roshan@opensource.lk, roshanw@jkcsworld.com)
  + * @author Samisa Abeysinghe (sabeysinghe@virtusa.com)
    *
    */
   
  @@ -90,7 +91,11 @@
   	 delete m_pEnv;
       if(m_pHeader)
         delete m_pHeader;    
  -    if (m_pParser) delete m_pParser;
  +    if (m_pParser)
  +    {
  +        XMLParserFactory::destroyParserObject(m_pParser);
  +        //delete m_pParser;
  +    }
       free(m_pcFaultDetail);
   }
   
  
  
  

Mime
View raw message