You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/01/20 05:39:44 UTC
cvs commit: ws-axis/c/src/soap/xsd Decimal.cpp Decimal.hpp
samisa 2005/01/19 20:39:44
Modified: c/src/soap/xsd Decimal.cpp Decimal.hpp
Log:
Added destructor and some meory cleaning logic. AXISCPP-384.
Revision Changes Path
1.3 +9 -0 ws-axis/c/src/soap/xsd/Decimal.cpp
Index: Decimal.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/xsd/Decimal.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Decimal.cpp 19 Jan 2005 15:22:33 -0000 1.2
+++ Decimal.cpp 20 Jan 2005 04:39:44 -0000 1.3
@@ -6,6 +6,15 @@
{
}
+Decimal::~Decimal()
+{
+ if (m_Decimal)
+ {
+ delete m_Decimal;
+ m_Decimal = NULL;
+ }
+}
+
AxisChar* Decimal::serialize(const void* value) throw (AxisSoapException)
{
return serialize((double*) value);
1.3 +5 -0 ws-axis/c/src/soap/xsd/Decimal.hpp
Index: Decimal.hpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/xsd/Decimal.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Decimal.hpp 19 Jan 2005 15:22:33 -0000 1.2
+++ Decimal.hpp 20 Jan 2005 04:39:44 -0000 1.3
@@ -36,6 +36,11 @@
*/
Decimal();
+ /**
+ * Destructor
+ */
+ ~Decimal();
+
/**
* Serialize value to it's on-the-wire string form.
* @param value The value to be serialized.