You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2005/03/09 22:51:59 UTC

cvs commit: xml-xalan/c/src/xalanc/XercesParserLiaison XercesParserLiaison.cpp

dbertoni    2005/03/09 13:51:59

  Modified:    c/src/xalanc/XercesParserLiaison XercesParserLiaison.cpp
  Log:
  Fix for XALANC-463.
  
  Revision  Changes    Path
  1.12      +1 -9      xml-xalan/c/src/xalanc/XercesParserLiaison/XercesParserLiaison.cpp
  
  Index: XercesParserLiaison.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XercesParserLiaison/XercesParserLiaison.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- XercesParserLiaison.cpp	15 Dec 2004 17:28:49 -0000	1.11
  +++ XercesParserLiaison.cpp	9 Mar 2005 21:51:59 -0000	1.12
  @@ -131,15 +131,7 @@
   		if ((*i).second.isDeprecated() == false &&
   			(*i).second.isOwned() == true)
   		{
  -			DOMDocument_Type* docToDelete =  const_cast<DOMDocument_Type*>((*i).second.m_wrapper->getXercesDocument());
  -
  -            if(docToDelete != 0 )
  -            {
  -                docToDelete->~DOMDocument_Type();
  -
  -                getMemoryManager().deallocate((void*)docToDelete);
  -            }
  -
  +            delete (*i).second.m_wrapper->getXercesDocument();
   		}
   
           XalanDocument* docToDelete = const_cast<XalanDocument*>((*i).first);
  
  
  

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