You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ov...@apache.org on 2002/04/09 07:35:50 UTC
cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap CallFunctionNode.java
ovidiu 02/04/08 22:35:50
Modified: src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap
CallFunctionNode.java
Log:
Release the interpreter component.
Revision Changes Path
1.5 +6 -1 xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap/CallFunctionNode.java
Index: CallFunctionNode.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap/CallFunctionNode.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- CallFunctionNode.java 18 Mar 2002 06:47:01 -0000 1.4
+++ CallFunctionNode.java 9 Apr 2002 05:35:50 -0000 1.5
@@ -135,7 +135,12 @@
// Obtain the Interpreter instance for this language
Interpreter interpreter = (Interpreter)selector.select(language);
- interpreter.callFunction(name, params, env, context);
+ try {
+ interpreter.callFunction(name, params, env, context);
+ }
+ finally {
+ selector.release((Component)interpreter);
+ }
return true;
}
}
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org