ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/soap/xsd Decimal.cpp HexBinary.cpp HexBinary.hpp
Date Thu, 20 Jan 2005 04:49:29 GMT
samisa      2005/01/19 20:49:29

  Modified:    c/src/soap/xsd Decimal.cpp HexBinary.cpp HexBinary.hpp
  Log:
  Added destructor and some meory cleaning logic. AXISCPP-384.
  
  Revision  Changes    Path
  1.4       +1 -1      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Decimal.cpp	20 Jan 2005 04:39:44 -0000	1.3
  +++ Decimal.cpp	20 Jan 2005 04:49:28 -0000	1.4
  @@ -38,7 +38,7 @@
       }
       m_Buf = new char[strlen (serializedValue) + 1];
       strcpy (m_Buf, serializedValue);
  -    delete serializedValue;        
  +    delete [] serializedValue;        
       return m_Buf;
   }
   
  
  
  
  1.6       +9 -0      ws-axis/c/src/soap/xsd/HexBinary.cpp
  
  Index: HexBinary.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/HexBinary.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HexBinary.cpp	19 Jan 2005 15:22:33 -0000	1.5
  +++ HexBinary.cpp	20 Jan 2005 04:49:29 -0000	1.6
  @@ -6,6 +6,15 @@
       {
       }
   
  +    HexBinary::~HexBinary()
  +    {
  +        if (m_HexBinary)
  +        {
  +            delete m_HexBinary;
  +            m_HexBinary = NULL;
  +        }
  +    }
  +
       AxisChar* HexBinary::serialize(const void* value) throw (AxisSoapException)
       {
       	return serialize((xsd__hexBinary*) value);
  
  
  
  1.4       +5 -0      ws-axis/c/src/soap/xsd/HexBinary.hpp
  
  Index: HexBinary.hpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/HexBinary.hpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HexBinary.hpp	19 Jan 2005 15:22:33 -0000	1.3
  +++ HexBinary.hpp	20 Jan 2005 04:49:29 -0000	1.4
  @@ -38,6 +38,11 @@
       */
       HexBinary();
   
  +   /**
  +    * Destructor.
  +    */
  +    ~HexBinary();
  +
   	/**
   	 * Serialize value to it's on-the-wire string form.
   	 * @param value The value to be serialized.
  
  
  

Mime
View raw message