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 2001/05/10 20:43:47 UTC

cvs commit: xml-xalan/c/src/XSLT XSLTEngineImpl.cpp

dbertoni    01/05/10 11:43:46

  Modified:    c/src/XSLT XSLTEngineImpl.cpp
  Log:
  Make sure an InputSource from an EntityResolver is deleted.
  
  Revision  Changes    Path
  1.98      +3 -3      xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp
  
  Index: XSLTEngineImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp,v
  retrieving revision 1.97
  retrieving revision 1.98
  diff -u -r1.97 -r1.98
  --- XSLTEngineImpl.cpp	2001/05/10 18:04:20	1.97
  +++ XSLTEngineImpl.cpp	2001/05/10 18:43:41	1.98
  @@ -659,12 +659,12 @@
   		}
   		else
   		{
  -			InputSource* const	resolverInputSource =
  +			const XalanAutoPtr<InputSource>		resolverInputSource =
   				theResolver->resolveEntity(0, c_wstr(urlString));
   
  -			if (resolverInputSource != 0)
  +			if (resolverInputSource.get() != 0)
   			{
  -				doc = parseXML(*resolverInputSource, docHandler, docToRegister);
  +				doc = parseXML(*resolverInputSource.get(), docHandler, docToRegister);
   			}
   			else
   			{
  
  
  

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