axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal ClientStubWriter.java
Date Tue, 14 Jun 2005 13:03:05 GMT
dicka       2005/06/14 06:03:05

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal
                        ClientStubWriter.java
  Log:
  Remove memory leak from generated stubs of non-nillable simple return types.
  
  PR: AXISCPP-691
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.91      +3 -0      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java
  
  Index: ClientStubWriter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java,v
  retrieving revision 1.90
  retrieving revision 1.91
  diff -u -r1.90 -r1.91
  --- ClientStubWriter.java	13 Jun 2005 13:48:56 -0000	1.90
  +++ ClientStubWriter.java	14 Jun 2005 13:03:05 -0000	1.91
  @@ -1014,7 +1014,10 @@
   					      returntype.getParamName () +
   					      "\", 0);\n");
   				writer.write ("\t\t\tif(pReturn)\n");
  +				writer.write ("\t\t\t{\n");
   				writer.write ("\t\t\t\tRet = *pReturn;\n");
  +				writer.write ("\t\t\t\tdelete pReturn;\n");
  +				writer.write ("\t\t\t}\n");
   			    }
   			    // TODO If we unexpectedly receive a nill value, when nillable="false" we should
do something appropriate, perhaps as below:
   //                              writer.write("\t\t\telse");
  
  
  

Mime
View raw message