cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r179041 - /cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ErrorHandlerHelper.java
Date Mon, 30 May 2005 09:39:15 GMT
Author: cziegeler
Date: Mon May 30 02:39:14 2005
New Revision: 179041

URL: http://svn.apache.org/viewcvs?rev=179041&view=rev
Log:
Fix memory-leak

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ErrorHandlerHelper.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ErrorHandlerHelper.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ErrorHandlerHelper.java?rev=179041&r1=179040&r2=179041&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ErrorHandlerHelper.java
(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ErrorHandlerHelper.java
Mon May 30 02:39:14 2005
@@ -104,7 +104,12 @@
                                       Environment env,
                                       InvokeContext context)
     throws Exception {
-        return prepareErrorHandler(ex, env, context) != null;
+        final Processor.InternalPipelineDescription desc = prepareErrorHandler(ex, env, context);
+        if ( desc != null ) {
+            desc.release();
+            return true;
+        }
+        return  false;
     }
 
     /**
@@ -146,7 +151,12 @@
                                       Environment env,
                                       InvokeContext context)
     throws Exception {
-        return prepareErrorHandler(node, ex, env, context) != null;
+        final Processor.InternalPipelineDescription desc = prepareErrorHandler(node, ex,
env, context);
+        if ( desc != null ) {
+            desc.release();
+            return true;
+        }
+        return  false;
     }
 
     /**



Mime
View raw message