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/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal BeanParamWriter.java
Date Tue, 08 Mar 2005 09:28:30 GMT
samisa      2005/03/08 01:28:30

  Modified:    c/src/soap/xsd Byte.cpp Short.cpp
               c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        BeanParamWriter.java
  Log:
  Fixes for memory leaks included.
  AXISCPP-507
  
  Revision  Changes    Path
  1.7       +1 -0      ws-axis/c/src/soap/xsd/Byte.cpp
  
  Index: Byte.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/Byte.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Byte.cpp	4 Mar 2005 13:51:40 -0000	1.6
  +++ Byte.cpp	8 Mar 2005 09:28:30 -0000	1.7
  @@ -37,6 +37,7 @@
       }
       m_Byte = new xsd__byte;
       *m_Byte = static_cast<xsd__byte> (*returnValue);
  +    delete returnValue; // Samissa - need to clean this memory
       return m_Byte;
   }
   
  
  
  
  1.7       +1 -0      ws-axis/c/src/soap/xsd/Short.cpp
  
  Index: Short.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/Short.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Short.cpp	4 Mar 2005 13:51:40 -0000	1.6
  +++ Short.cpp	8 Mar 2005 09:28:30 -0000	1.7
  @@ -37,6 +37,7 @@
       }
       m_Short = new xsd__short;
       *m_Short = static_cast<xsd__short> (*returnValue);
  +    delete returnValue; // Samissa - need to clean this memory
       return m_Short;
   }
   
  
  
  
  1.56      +1 -0      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
  
  Index: BeanParamWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- BeanParamWriter.java	1 Mar 2005 05:05:22 -0000	1.55
  +++ BeanParamWriter.java	8 Mar 2005 09:28:30 -0000	1.56
  @@ -400,6 +400,7 @@
   					writer.write("\t" + attribs[i].getTypeName() + " * " + attribs[i].getParamNameAsMember()+
" = NULL;\n");
   					writer.write("\tif ((" + attribs[i].getParamNameAsMember()+ " = pIWSDZ->"+CUtils.getParameterGetValueMethodName(attribs[i].getTypeName(),
attribs[i].isAttribute())+"( \""+ soapTagName +"\",0)) != NULL)\n");
   					writer.write("\t\tparam->"+attribs[i].getParamNameAsMember()+" = *( " + attribs[i].getParamNameAsMember()+"
);\n");
  +                                        writer.write("\t\tdelete " + attribs[i].getParamNameAsMember()+";\n");
   				}
   			}
   			else
  
  
  

Mime
View raw message