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.1/src/java/org/apache/cocoon/components CocoonComponentManager.java
Date Thu, 24 Apr 2003 09:02:17 GMT
bdelacretaz    2003/04/24 02:02:16

  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.8       +9 -2      cocoon-2.1/src/java/org/apache/cocoon/components/CocoonComponentManager.java
  
  Index: CocoonComponentManager.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/CocoonComponentManager.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- CocoonComponentManager.java	15 Apr 2003 13:10:27 -0000	1.7
  +++ CocoonComponentManager.java	24 Apr 2003 09:02:15 -0000	1.8
  @@ -357,6 +357,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,
  @@ -483,7 +490,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