tng         2003/02/05 10:53:26

  Modified:    c/samples/CreateDOMDocument CreateDOMDocument.cpp
               c/samples/DOMCount DOMCount.hpp
               c/samples/DOMPrint DOMPrintErrorHandler.cpp
                        DOMTreeErrorReporter.hpp
               c/samples/EnumVal EnumVal.cpp
               c/samples/MemParse MemParse.hpp
               c/samples/PParse PParse.hpp
               c/samples/Redirect Redirect.hpp
               c/samples/SAX2Count SAX2Count.hpp
               c/samples/SAX2Print SAX2Print.hpp
               c/samples/SAXCount SAXCount.hpp
               c/samples/SAXPrint SAXPrint.hpp
               c/samples/SEnumVal SEnumVal.cpp
               c/samples/StdInParse StdInParse.hpp
  Log:
  [Bug 11915] Utility for freeing memory.
  
  Revision  Changes    Path
  1.15      +3 -3      xml-xerces/c/samples/CreateDOMDocument/CreateDOMDocument.cpp
  
  Index: CreateDOMDocument.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/CreateDOMDocument/CreateDOMDocument.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- CreateDOMDocument.cpp     5 Nov 2002 21:46:19 -0000       1.14
  +++ CreateDOMDocument.cpp     5 Feb 2003 18:53:22 -0000       1.15
  @@ -92,7 +92,7 @@
   
       ~XStr()
       {
  -        delete [] fUnicodeForm;
  +        XMLString::release(&fUnicodeForm);
       }
   
   
  @@ -135,7 +135,7 @@
           cerr << "Error during Xerces-c Initialization.\n"
                << "  Exception message:"
                << pMsg;
  -        delete [] pMsg;
  +        XMLString::release(&pMsg);
           return 1;
       }
   
  
  
  
  1.9       +4 -1      xml-xerces/c/samples/DOMCount/DOMCount.hpp
  
  Index: DOMCount.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/DOMCount/DOMCount.hpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DOMCount.hpp      5 Nov 2002 21:46:19 -0000       1.8
  +++ DOMCount.hpp      5 Feb 2003 18:53:22 -0000       1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.9  2003/02/05 18:53:22  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.8  2002/11/05 21:46:19  tng
    * Explicit code using namespace in application.
    *
  @@ -160,7 +163,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
   
  
  
  
  1.5       +5 -2      xml-xerces/c/samples/DOMPrint/DOMPrintErrorHandler.cpp
  
  Index: DOMPrintErrorHandler.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/DOMPrint/DOMPrintErrorHandler.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DOMPrintErrorHandler.cpp  10 Dec 2002 15:36:36 -0000      1.4
  +++ DOMPrintErrorHandler.cpp  5 Feb 2003 18:53:22 -0000       1.5
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.5  2003/02/05 18:53:22  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.4  2002/12/10 15:36:36  tng
    * DOMPrint minor update: print error message to cerr.
    *
  @@ -90,7 +93,7 @@
   
       char *msg = XMLString::transcode(domError.getMessage());
       cerr<< msg <<endl;
  -    delete[] msg;
  +    XMLString::release(&msg);
   
       // Instructs the serializer to continue serialization if possible.
       return true;
  
  
  
  1.10      +2 -2      xml-xerces/c/samples/DOMPrint/DOMTreeErrorReporter.hpp
  
  Index: DOMTreeErrorReporter.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/DOMPrint/DOMTreeErrorReporter.hpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DOMTreeErrorReporter.hpp  5 Nov 2002 21:46:19 -0000       1.9
  +++ DOMTreeErrorReporter.hpp  5 Feb 2003 18:53:22 -0000       1.10
  @@ -129,7 +129,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
   
  
  
  
  1.19      +4 -1      xml-xerces/c/samples/EnumVal/EnumVal.cpp
  
  Index: EnumVal.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/EnumVal/EnumVal.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- EnumVal.cpp       5 Nov 2002 21:46:19 -0000       1.18
  +++ EnumVal.cpp       5 Feb 2003 18:53:23 -0000       1.19
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.19  2003/02/05 18:53:23  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.18  2002/11/05 21:46:19  tng
    * Explicit code using namespace in application.
    *
  @@ -155,7 +158,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
   
  
  
  
  1.6       +4 -1      xml-xerces/c/samples/MemParse/MemParse.hpp
  
  Index: MemParse.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/MemParse/MemParse.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- MemParse.hpp      1 Feb 2002 22:37:14 -0000       1.5
  +++ MemParse.hpp      5 Feb 2003 18:53:23 -0000       1.6
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.6  2003/02/05 18:53:23  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.5  2002/02/01 22:37:14  peiyongz
    * sane_include
    *
  @@ -108,7 +111,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
   
  
  
  
  1.5       +18 -13    xml-xerces/c/samples/PParse/PParse.hpp
  
  Index: PParse.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/PParse/PParse.hpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PParse.hpp        2 Mar 2000 19:53:44 -0000       1.4
  +++ PParse.hpp        5 Feb 2003 18:53:23 -0000       1.5
  @@ -1,37 +1,37 @@
   /*
    * The Apache Software License, Version 1.1
  - * 
  + *
    * Copyright (c) 1999-2000 The Apache Software Foundation.  All rights
    * reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - * 
  + *    notice, this list of conditions and the following disclaimer.
  + *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
    *    the documentation and/or other materials provided with the
    *    distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution,
  - *    if any, must include the following acknowledgment:  
  + *    if any, must include the following acknowledgment:
    *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself,
    *    if and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "Xerces" and "Apache Software Foundation" must
    *    not be used to endorse or promote products derived from this
  - *    software without prior written permission. For written 
  + *    software without prior written permission. For written
    *    permission, please contact apache\@apache.org.
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache",
    *    nor may "Apache" appear in their name, without prior written
    *    permission of the Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  @@ -45,7 +45,7 @@
    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    * SUCH DAMAGE.
    * ====================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation, and was
    * originally based on software copyright (c) 1999, International
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.5  2003/02/05 18:53:23  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.4  2000/03/02 19:53:44  roddey
    * This checkin includes many changes done while waiting for the
    * 1.1.0 code to be finished. I can't list them all here, but a list is
  @@ -103,7 +106,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
   
  
  
  
  1.6       +4 -1      xml-xerces/c/samples/Redirect/Redirect.hpp
  
  Index: Redirect.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/Redirect/Redirect.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Redirect.hpp      1 Feb 2002 22:38:26 -0000       1.5
  +++ Redirect.hpp      5 Feb 2003 18:53:23 -0000       1.6
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.6  2003/02/05 18:53:23  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.5  2002/02/01 22:38:26  peiyongz
    * sane_include
    *
  @@ -107,7 +110,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
       // -----------------------------------------------------------------------
  
  
  
  1.4       +4 -1      xml-xerces/c/samples/SAX2Count/SAX2Count.hpp
  
  Index: SAX2Count.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SAX2Count/SAX2Count.hpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SAX2Count.hpp     1 Feb 2002 22:38:52 -0000       1.3
  +++ SAX2Count.hpp     5 Feb 2003 18:53:23 -0000       1.4
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.4  2003/02/05 18:53:23  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.3  2002/02/01 22:38:52  peiyongz
    * sane_include
    *
  @@ -99,7 +102,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
       // -----------------------------------------------------------------------
  
  
  
  1.2       +5 -2      xml-xerces/c/samples/SAX2Print/SAX2Print.hpp
  
  Index: SAX2Print.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SAX2Print/SAX2Print.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SAX2Print.hpp     2 Aug 2000 19:16:14 -0000       1.1
  +++ SAX2Print.hpp     5 Feb 2003 18:53:23 -0000       1.2
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.2  2003/02/05 18:53:23  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.1  2000/08/02 19:16:14  jpolast
    * initial checkin of SAX2Print
    *
  @@ -89,7 +92,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
       // -----------------------------------------------------------------------
  
  
  
  1.6       +4 -1      xml-xerces/c/samples/SAXCount/SAXCount.hpp
  
  Index: SAXCount.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SAXCount/SAXCount.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SAXCount.hpp      1 Feb 2002 22:41:07 -0000       1.5
  +++ SAXCount.hpp      5 Feb 2003 18:53:24 -0000       1.6
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.6  2003/02/05 18:53:24  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.5  2002/02/01 22:41:07  peiyongz
    * sane_include
    *
  @@ -108,7 +111,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
       // -----------------------------------------------------------------------
  
  
  
  1.5       +6 -1      xml-xerces/c/samples/SAXPrint/SAXPrint.hpp
  
  Index: SAXPrint.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SAXPrint/SAXPrint.hpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SAXPrint.hpp      2 Mar 2000 19:53:49 -0000       1.4
  +++ SAXPrint.hpp      5 Feb 2003 18:53:24 -0000       1.5
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.5  2003/02/05 18:53:24  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.4  2000/03/02 19:53:49  roddey
    * This checkin includes many changes done while waiting for the
    * 1.1.0 code to be finished. I can't list them all here, but a list is
  @@ -102,7 +105,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
       // -----------------------------------------------------------------------
  
  
  
  1.15      +5 -2      xml-xerces/c/samples/SEnumVal/SEnumVal.cpp
  
  Index: SEnumVal.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SEnumVal/SEnumVal.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SEnumVal.cpp      14 Jan 2003 15:32:45 -0000      1.14
  +++ SEnumVal.cpp      5 Feb 2003 18:53:24 -0000       1.15
  @@ -57,6 +57,9 @@
   /*
    * $Id$
    * $Log$
  + * Revision 1.15  2003/02/05 18:53:24  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.14  2003/01/14 15:32:45  knoaman
    * [Bug 16024] SchemaSymbols.hpp conflicts C++ Builder 6 dir.h
    *
  @@ -144,7 +147,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
   
  
  
  
  1.6       +16 -13    xml-xerces/c/samples/StdInParse/StdInParse.hpp
  
  Index: StdInParse.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/StdInParse/StdInParse.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- StdInParse.hpp    1 Feb 2002 22:41:37 -0000       1.5
  +++ StdInParse.hpp    5 Feb 2003 18:53:25 -0000       1.6
  @@ -1,37 +1,37 @@
   /*
    * The Apache Software License, Version 1.1
  - * 
  + *
    * Copyright (c) 1999-2000 The Apache Software Foundation.  All rights
    * reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
  - * 
  + *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - * 
  + *    notice, this list of conditions and the following disclaimer.
  + *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
    *    the documentation and/or other materials provided with the
    *    distribution.
  - * 
  + *
    * 3. The end-user documentation included with the redistribution,
  - *    if any, must include the following acknowledgment:  
  + *    if any, must include the following acknowledgment:
    *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowledgment may appear in the software itself,
    *    if and wherever such third-party acknowledgments normally appear.
  - * 
  + *
    * 4. The names "Xerces" and "Apache Software Foundation" must
    *    not be used to endorse or promote products derived from this
  - *    software without prior written permission. For written 
  + *    software without prior written permission. For written
    *    permission, please contact apache\@apache.org.
  - * 
  + *
    * 5. Products derived from this software may not be called "Apache",
    *    nor may "Apache" appear in their name, without prior written
    *    permission of the Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  @@ -45,7 +45,7 @@
    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    * SUCH DAMAGE.
    * ====================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation, and was
    * originally based on software copyright (c) 1999, International
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.6  2003/02/05 18:53:25  tng
  + * [Bug 11915] Utility for freeing memory.
  + *
    * Revision 1.5  2002/02/01 22:41:37  peiyongz
    * sane_include
    *
  @@ -110,7 +113,7 @@
   
       ~StrX()
       {
  -        delete [] fLocalForm;
  +        XMLString::release(&fLocalForm);
       }
   
       // -----------------------------------------------------------------------
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to