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 sa...@apache.org on 2005/01/20 05:30:07 UTC

cvs commit: ws-axis/c/src/soap/xsd DateTime.cpp DateTime.hpp

samisa      2005/01/19 20:30:07

  Modified:    c/src/soap/xsd DateTime.cpp DateTime.hpp
  Log:
  Added destructor and some meory cleaning logic. AXISCPP-384.
  
  Revision  Changes    Path
  1.4       +9 -0      ws-axis/c/src/soap/xsd/DateTime.cpp
  
  Index: DateTime.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/DateTime.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DateTime.cpp	19 Jan 2005 15:22:33 -0000	1.3
  +++ DateTime.cpp	20 Jan 2005 04:30:07 -0000	1.4
  @@ -6,6 +6,15 @@
       {
       }
   
  +    DateTime::~DateTime()
  +    {
  +        if (m_DateTime)
  +        {
  +            delete m_DateTime;
  +            m_DateTime = NULL;
  +        }
  +    }
  +
       AxisChar* DateTime::serialize(const void* value) throw (AxisSoapException)
       {
       	return serialize((struct tm*) value);
  
  
  
  1.3       +5 -0      ws-axis/c/src/soap/xsd/DateTime.hpp
  
  Index: DateTime.hpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/DateTime.hpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DateTime.hpp	19 Jan 2005 15:22:33 -0000	1.2
  +++ DateTime.hpp	20 Jan 2005 04:30:07 -0000	1.3
  @@ -37,6 +37,11 @@
        */
       DateTime();
       
  +    /**
  +     * Destructor
  +     */
  +    ~DateTime();
  +    
   	/**
   	 * Serialize value to it's on-the-wire string form.
   	 * @param value The value to be serialized.