cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: CocoonComponentManager leaking
Date Mon, 11 Feb 2002 07:14:23 GMT

> Vadim Gritsenko wrote:
> 
> Carsten,
> 
> It seems to me that there is a memory leak in the
> CocoonComponentManager. I went ahead and patched, please confirm that I
> understood the logic correctly ;)
> 
> Patch:
>          if ( !stack.empty() ) {
>              final Object[] objects = (Object[])stack.peek();
>              if ( objects[1] == objectModel ) {
>                  stack.push(new Object[] {resolver,
>                                          objectModel,
>                                          objects[2],
>                                          new
> Integer(((Integer)objects[3]).intValue()+1)});
> +                return;
>              }
>          }
>          stack.push(new Object[] {resolver, objectModel, new HashMap(5),
> ONE});
> 
> 
Hi Vadim,

thanks for patching this. Your patch is 100% correct - I just forgot
the "return" statement.

Thanks,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message