xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leh...@apache.org
Subject cvs commit: xml-xerces/c/src/dom DocumentImpl.cpp
Date Thu, 01 Feb 2001 01:35:00 GMT
lehors      01/01/31 17:35:00

  Modified:    c/src/dom DocumentImpl.cpp
  Log:
  fixed memory bug: we need to make sure we won't access the userData
  table after we destroyed it.
  
  Revision  Changes    Path
  1.35      +6 -3      xml-xerces/c/src/dom/DocumentImpl.cpp
  
  Index: DocumentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DocumentImpl.cpp,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- DocumentImpl.cpp	2001/01/25 23:58:27	1.34
  +++ DocumentImpl.cpp	2001/02/01 01:34:59	1.35
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: DocumentImpl.cpp,v 1.34 2001/01/25 23:58:27 lehors Exp $
  + * $Id: DocumentImpl.cpp,v 1.35 2001/02/01 01:34:59 lehors Exp $
    */
   
   //
  @@ -171,8 +171,11 @@
           ranges = 0;
       }
       
  -	if (userData)
  -		delete userData;
  +    if (userData) {
  +        // make sure we won't access userData any further
  +        hasUserData(false);
  +        delete userData;
  +    }
   
       delete namePool;
       // Do not delete docType and docElement pointers here.
  
  
  

Mime
View raw message