cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject cvs commit: cocoon-2.0/src/java/org/apache/cocoon/components CocoonComponentManager.java
Date Thu, 24 Apr 2003 09:30:48 GMT
bdelacretaz    2003/04/24 02:30:48

  Modified:    src/java/org/apache/cocoon/components
                        CocoonComponentManager.java
  Log:
  Patch for possible memory leak requested by Carsten in
    http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=105116719120501&w=2
  
  Revision  Changes    Path
  1.2       +9 -2      cocoon-2.0/src/java/org/apache/cocoon/components/CocoonComponentManager.java
  
  Index: CocoonComponentManager.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/components/CocoonComponentManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CocoonComponentManager.java	9 Mar 2003 00:01:31 -0000	1.1
  +++ CocoonComponentManager.java	24 Apr 2003 09:30:48 -0000	1.2
  @@ -306,6 +306,13 @@
       }
   
       /**
  +    * Release a RequestLifecycleComponent
  +    */
  +    protected void releaseRLComponent( final Component component ) {
  +        super.release( component );
  +    }
  +
  +    /**
        * Add an automatically released component
        */
       public static void addComponentForAutomaticRelease(final ComponentSelector selector,
  @@ -392,7 +399,7 @@
           while (iter.hasNext()) {
               final Object[] o = (Object[])iter.next();
               final Component component = (Component)o[0];
  -            ((ComponentManager)o[1]).release( component );
  +            ((CocoonComponentManager)o[1]).releaseRLComponent( component );
           }
           
           for(int i = 0; i < autoreleaseComponents.size(); i++) {
  
  
  

Mime
View raw message