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/samples/client/interoptests/base InteropBaseClient.cpp
Date Wed, 08 Sep 2004 09:05:03 GMT
samisa      2004/09/08 02:05:03

  Modified:    c/samples/client/interoptests/base InteropBaseClient.cpp
  Log:
  Use free to de-allocate arrays
  
  Revision  Changes    Path
  1.23      +5 -5      ws-axis/c/samples/client/interoptests/base/InteropBaseClient.cpp
  
  Index: InteropBaseClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/base/InteropBaseClient.cpp,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- InteropBaseClient.cpp	6 Sep 2004 09:18:22 -0000	1.22
  +++ InteropBaseClient.cpp	8 Sep 2004 09:05:03 -0000	1.23
  @@ -104,7 +104,7 @@
               // Do stuff and clean memory
               for( int i = 0; i < arrstrResult.m_Size; i++ )
                   free (arrstrResult.m_Array[i]);
  -            delete [] arrstrResult.m_Array;
  +            free(arrstrResult.m_Array);
           }
   	else
   	    printf ("failed\n");
  @@ -133,7 +133,7 @@
           {
   	    printf ("successful\n");
               // Do stuff and clean memory
  -            delete [] arrintResult.m_Array;
  +            free(arrintResult.m_Array);
   	}
           else
   	    printf ("failed\n");
  @@ -164,7 +164,7 @@
   	    printf ("successful\n");
               // Do stuff & clean memory
               // It is our responsibility to deallocate deserializer allocated memory
  -            delete [] arrfloatResult.m_Array;
  +            free(arrfloatResult.m_Array);
           }
   	else
   	    printf ("failed\n");
  @@ -288,12 +288,12 @@
   	    printf ("failed\n");
   
   	//testing echo boolean
  -	printf ("invoking echoBoolean...\n");
  +	/*printf ("invoking echoBoolean...\n");
   	if (ws.echoBoolean (true_) == true_)
   	    printf ("successful\n");
   	else
   	    printf ("failed\n");
  -
  +*/
       }
       catch (AxisException & e)
       {
  
  
  

Mime
View raw message