ovidiu      02/04/08 22:36:57

  Modified:    
src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap
                        ContinueNode.java
  Log:
  Release the interpreter component.
  
  Revision  Changes    Path
  1.2       +8 -1      
xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ContinueNode.java
  
  Index: ContinueNode.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ContinueNode.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ContinueNode.java 25 Mar 2002 07:29:21 -0000      1.1
  +++ ContinueNode.java 9 Apr 2002 05:36:57 -0000       1.2
  @@ -1,5 +1,6 @@
   package org.apache.cocoon.components.treeprocessor.sitemap;
   
  +import org.apache.avalon.framework.component.Component;
   import org.apache.avalon.framework.component.ComponentManager;
   import org.apache.avalon.framework.component.Composable;
   import org.apache.avalon.framework.configuration.Configurable;
  @@ -67,7 +68,13 @@
       // Obtain the Interpreter instance for this language
       Interpreter interpreter = (Interpreter)selector.select(language);
   
  -    interpreter.handleContinuation(contId, env, context);
  +    try {
  +      interpreter.handleContinuation(contId, 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]

Reply via email to