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: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]