axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r408007 - in /webservices/axis/trunk/c/src/cbindings: AxisC.cpp AxisExceptionC.cpp
Date Sat, 20 May 2006 14:32:54 GMT
Author: nadiramra
Date: Sat May 20 07:32:54 2006
New Revision: 408007

URL: http://svn.apache.org/viewvc?rev=408007&view=rev
Log:
C support fixes/enhancements. 

Modified:
    webservices/axis/trunk/c/src/cbindings/AxisC.cpp
    webservices/axis/trunk/c/src/cbindings/AxisExceptionC.cpp

Modified: webservices/axis/trunk/c/src/cbindings/AxisC.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/cbindings/AxisC.cpp?rev=408007&r1=408006&r2=408007&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/AxisC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/AxisC.cpp Sat May 20 07:32:54 2006
@@ -161,14 +161,18 @@
             }
             case XSDC_BASE64BINARY:
             {
-                // TODO delete elements?            
-                delete (xsdc__base64Binary*) pValue;
+                xsdc__base64Binary* b64 = (xsdc__base64Binary*) pValue;
+                if (b64->__ptr)
+                    delete [] b64->__ptr;
+                delete b64;
                 break;
             }
             case XSDC_HEXBINARY:
             {
-                // TODO delete elements?            
-                delete (xsdc__hexBinary*) pValue;
+                xsdc__hexBinary* hb = (xsdc__hexBinary*) pValue;
+                if (hb->__ptr)
+                    delete [] hb->__ptr;
+                delete hb;
                 break;
             }
             case XSDC_ANY:

Modified: webservices/axis/trunk/c/src/cbindings/AxisExceptionC.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/cbindings/AxisExceptionC.cpp?rev=408007&r1=408006&r2=408007&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/cbindings/AxisExceptionC.cpp (original)
+++ webservices/axis/trunk/c/src/cbindings/AxisExceptionC.cpp Sat May 20 07:32:54 2006
@@ -37,7 +37,7 @@
 }
 
 AXISC_STORAGE_CLASS_INFO 
-const int axiscExceptionGetExceptionCode(AXISCHANDLE axisException) 
+int axiscExceptionGetExceptionCode(AXISCHANDLE axisException) 
 {
 	AxisException *ae = (AxisException*)axisException;
 	return ae->getExceptionCode();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message