You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@apache.org on 2001/02/01 02:35:00 UTC
cvs commit: xml-xerces/c/src/dom DocumentImpl.cpp
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.