You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/11/01 22:37:53 UTC

cvs commit: xml-xerces/c/src/idom IDDocumentImpl.cpp

tng         01/11/01 13:37:53

  Modified:    c/src/idom IDDocumentImpl.cpp
  Log:
  IDOM: Leak: should allocate the fNodeListPool with the overloaded new.
  
  Revision  Changes    Path
  1.12      +2 -2      xml-xerces/c/src/idom/IDDocumentImpl.cpp
  
  Index: IDDocumentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/idom/IDDocumentImpl.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- IDDocumentImpl.cpp	2001/10/18 15:01:01	1.11
  +++ IDDocumentImpl.cpp	2001/11/01 21:37:53	1.12
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: IDDocumentImpl.cpp,v 1.11 2001/10/18 15:01:01 tng Exp $
  + * $Id: IDDocumentImpl.cpp,v 1.12 2001/11/01 21:37:53 tng Exp $
    */
   
   #include <util/XMLUniDefs.hpp>
  @@ -949,7 +949,7 @@
   IDOM_NodeList *IDDocumentImpl::getDeepNodeList(const IDOM_Node *rootNode, const XMLCh *tagName)
   {
       if(!fNodeListPool) {
  -        fNodeListPool = new IDDeepNodeListPool<IDDeepNodeListImpl>(109, false);
  +        fNodeListPool = new (this) IDDeepNodeListPool<IDDeepNodeListImpl>(109, false);
       }
   
       IDDeepNodeListImpl* retList = fNodeListPool->getByKey(rootNode, tagName, 0);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org