You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2003/10/23 16:11:07 UTC

cvs commit: xml-xerces/c/src/xercesc/internal ElemStack.cpp

knoaman     2003/10/23 07:11:07

  Modified:    c/src/xercesc/internal ElemStack.cpp
  Log:
  Fix memory leak.
  
  Revision  Changes    Path
  1.9       +5 -1      xml-xerces/c/src/xercesc/internal/ElemStack.cpp
  
  Index: ElemStack.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/ElemStack.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ElemStack.cpp	22 Oct 2003 20:22:30 -0000	1.8
  +++ ElemStack.cpp	23 Oct 2003 14:11:07 -0000	1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.9  2003/10/23 14:11:07  knoaman
  + * Fix memory leak.
  + *
    * Revision 1.8  2003/10/22 20:22:30  knoaman
    * Prepare for annotation support.
    *
  @@ -178,7 +181,7 @@
       );//new StackElem*[fStackCapacity];
       memset(fStack, 0, fStackCapacity * sizeof(StackElem*));
   
  -    fNamespaceMap = new (fMemoryManager) ValueVectorOf<PrefMapElem*>(16);
  +    fNamespaceMap = new (fMemoryManager) ValueVectorOf<PrefMapElem*>(16, fMemoryManager);
   }
   
   ElemStack::~ElemStack()
  @@ -200,6 +203,7 @@
   
       // Delete the stack array itself now
       fMemoryManager->deallocate(fStack);//delete [] fStack;
  +    delete fNamespaceMap;
   }
   
   
  
  
  

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