You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by du...@apache.org on 2005/07/01 04:43:28 UTC
cvs commit: ws-axis/c/src/engine AxisEngineException.cpp
dushshantha 2005/06/30 19:43:28
Modified: c/src/engine AxisEngineException.cpp
Log:
Fix for the Issue 707.
removed the delete operation.
Revision Changes Path
1.19 +12 -4 ws-axis/c/src/engine/AxisEngineException.cpp
Index: AxisEngineException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/engine/AxisEngineException.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- AxisEngineException.cpp 22 Jun 2005 11:05:23 -0000 1.18
+++ AxisEngineException.cpp 1 Jul 2005 02:43:28 -0000 1.19
@@ -83,10 +83,18 @@
void AxisEngineException::processException(const int iExceptionCode, char* pcMessage)
{
- AxisString sMessage = pcMessage;
- m_sMessage = getMessage(iExceptionCode) + " " + sMessage;
- if(pcMessage)
- delete[] pcMessage;
+
+ if (pcMessage)
+ {
+ AxisString sMessage = pcMessage;
+ m_sMessage = getMessage(iExceptionCode) + " " + sMessage;
+ }
+ else
+ {
+ m_sMessage = getMessage(iExceptionCode);
+ }
+
+
}
const string AxisEngineException::getMessage (const exception* objException)
{