cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r307054 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StatusGenerator.java
Date Fri, 07 Oct 2005 08:54:08 GMT
Author: vgritsenko
Date: Fri Oct  7 01:54:01 2005
New Revision: 307054

URL: http://svn.apache.org/viewcvs?rev=307054&view=rev
Log:
... don't forget to release sources :)

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StatusGenerator.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StatusGenerator.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StatusGenerator.java?rev=307054&r1=307053&r2=307054&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StatusGenerator.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/generation/StatusGenerator.java
Fri Oct  7 01:54:01 2005
@@ -376,10 +376,17 @@
 
                 Set files = new TreeSet();
                 Collection kids = ((TraversableSource) this.libDirectory).getChildren();
-                for (Iterator i = kids.iterator(); i.hasNext(); ) {
-                    final Source lib = (Source) i.next();
-                    final String name = lib.getURI().substring(lib.getURI().lastIndexOf('/'));
-                    files.add(name);
+                try {
+                    for (Iterator i = kids.iterator(); i.hasNext(); ) {
+                        final Source lib = (Source) i.next();
+                        final String name = lib.getURI().substring(lib.getURI().lastIndexOf('/'));
+                        files.add(name);
+                    }
+                } finally {
+                    for (Iterator i = kids.iterator(); i.hasNext(); ) {
+                        final Source lib = (Source) i.next();
+                        super.resolver.release(lib);
+                    }
                 }
 
                 for (Iterator i = files.iterator(); i.hasNext(); ) {



Mime
View raw message