cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/treeprocessor/sitemap MountNode.java
Date Thu, 05 Feb 2004 07:55:23 GMT
cziegeler    2004/02/04 23:55:23

  Modified:    src/java/org/apache/cocoon/components/treeprocessor/sitemap
                        MountNode.java
  Log:
  Release resolver in all cases
  
  Revision  Changes    Path
  1.10      +7 -4      cocoon-2.1/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java
  
  Index: MountNode.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/treeprocessor/sitemap/MountNode.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- MountNode.java	11 Nov 2003 10:31:04 -0000	1.9
  +++ MountNode.java	5 Feb 2004 07:55:23 -0000	1.10
  @@ -157,11 +157,14 @@
               }
               
               SourceResolver resolver = (SourceResolver)this.manager.lookup(SourceResolver.ROLE);
  -            Source src = resolver.resolveURI(actualSource);
               try {
  -                processor = this.parentProcessor.createChildProcessor(this.manager, this.language,
src);
  +                Source src = resolver.resolveURI(actualSource);
  +                try {
  +                    processor = this.parentProcessor.createChildProcessor(this.manager,
this.language, src);
  +                } finally {
  +                    resolver.release(src);
  +                }
               } finally {
  -                resolver.release(src);
                   this.manager.release(resolver);
               }
   
  
  
  

Mime
View raw message