axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r367996 - in /webservices/axis/trunk/c/src: engine/client/Call.cpp transport/axis3/URL.cpp
Date Wed, 11 Jan 2006 10:36:45 GMT
Author: prestonf
Date: Wed Jan 11 02:36:41 2006
New Revision: 367996

URL: http://svn.apache.org/viewcvs?rev=367996&view=rev
Log:
Tidy up of some comments and check if object exists before trying to delete it (shouldn't
have been necessary, but good practice).

Modified:
    webservices/axis/trunk/c/src/engine/client/Call.cpp
    webservices/axis/trunk/c/src/transport/axis3/URL.cpp

Modified: webservices/axis/trunk/c/src/engine/client/Call.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/engine/client/Call.cpp?rev=367996&r1=367995&r2=367996&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/engine/client/Call.cpp (original)
+++ webservices/axis/trunk/c/src/engine/client/Call.cpp Wed Jan 11 02:36:41 2006
@@ -350,7 +350,11 @@
         char* tempvalue = new char[strlen(value) + 3];
         sprintf( tempvalue, "\"%s\"", value);
         m_pTransport->setTransportProperty(type, tempvalue);
+		if( tempvalue != NULL)
+		{
         delete [] tempvalue;
+			tempvalue = NULL;
+		}
     }
     else
 	{

Modified: webservices/axis/trunk/c/src/transport/axis3/URL.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/transport/axis3/URL.cpp?rev=367996&r1=367995&r2=367996&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/transport/axis3/URL.cpp (original)
+++ webservices/axis/trunk/c/src/transport/axis3/URL.cpp Wed Jan 11 02:36:41 2006
@@ -32,7 +32,6 @@
 URL::URL()
     : m_Protocol(unknown), m_Port(0), m_URL("")
 {
-   /* cout << "inside URL constructor" << endl;  */
     m_Host = "";
     m_Path = "";
     m_Query = "";



Mime
View raw message