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/common ArrayBean.cpp
Date Wed, 02 Mar 2005 09:21:47 GMT
samisa      2005/03/02 01:21:47

  Modified:    c/src/common ArrayBean.cpp
  Log:
  Added the fix to eliminate compiler warning
  AXISCPP-470
  Submitted by:	Tim
  Reviewed by:	Samisa
  
  Revision  Changes    Path
  1.36      +6 -9      ws-axis/c/src/common/ArrayBean.cpp
  
  Index: ArrayBean.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/ArrayBean.cpp,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- ArrayBean.cpp	28 Feb 2005 14:51:49 -0000	1.35
  +++ ArrayBean.cpp	2 Mar 2005 09:21:47 -0000	1.36
  @@ -115,10 +115,9 @@
                   AxisChar** a = (AxisChar**)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    delete [] *a;
  -                    a++;
  +                    delete [] a[ix];
                   }
  -                delete [] m_value.sta;
  +                delete [] a;
               }
                   break;
               case XSD_HEXBINARY:
  @@ -126,10 +125,9 @@
                   xsd__hexBinary* a = (xsd__hexBinary*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    delete [] a->__ptr;
  -                    a++;
  +                    delete [] a[ix].__ptr;
                   }
  -                delete [] m_value.sta;
  +                delete [] a;
               }
                   break;
               case XSD_BASE64BINARY:
  @@ -137,10 +135,9 @@
                   xsd__base64Binary* a = (xsd__base64Binary*)m_value.sta;
                   for (int ix=0;ix<m_nSize;ix++)
                   {
  -                    delete [] a->__ptr;
  -                    a++;
  +                    delete [] a[ix].__ptr;
                   }
  -                delete [] m_value.sta;
  +                delete [] a;
               }
                   break;
               case XSD_DATETIME:
  
  
  

Mime
View raw message