You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by cz...@apache.org on 2003/10/21 10:27:00 UTC

cvs commit: avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xslt XSLTProcessorImpl.java

cziegeler    2003/10/21 01:27:00

  Modified:    xmlutil/src/java/org/apache/excalibur/xml/xslt
                        XSLTProcessorImpl.java
  Log:
  Releasing sources for includes
  
  Revision  Changes    Path
  1.34      +14 -5     avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xslt/XSLTProcessorImpl.java
  
  Index: XSLTProcessorImpl.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/xmlutil/src/java/org/apache/excalibur/xml/xslt/XSLTProcessorImpl.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- XSLTProcessorImpl.java	6 Jun 2003 09:10:43 -0000	1.33
  +++ XSLTProcessorImpl.java	21 Oct 2003 08:27:00 -0000	1.34
  @@ -597,11 +597,20 @@
                       isValid = false;
                       if( valid == 0 )
                       {
  -                        SourceValidity included = m_resolver.resolveURI( (String)pair[ 0 ] ).getValidity();
  -                        if( included != null )
  +                        Source includedSource = null;
  +                        try 
                           {
  -                            valid = storedValidity.isValid( included );
  -                            isValid = ( valid == 1 );
  +                            includedSource = m_resolver.resolveURI( (String)pair[ 0 ] );
  +                            SourceValidity included = includedSource.getValidity();
  +                            if( included != null )
  +                            {
  +                                valid = storedValidity.isValid( included );
  +                                isValid = ( valid == 1 );
  +                            }                            
  +                        } 
  +                        finally 
  +                        {
  +                            m_resolver.release(includedSource);
                           }
                       }
                       else
  
  
  

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