Tobias Kremer wrote:
> While hunting down some memory leaks in my application I found that it's
> generally a bad idea to store $c in a class as this never gets cleared up
> completely, is that correct?
> 

I'd wager circular reference issue. Take a look into ACCEPT_CONTEXT
controller.

In short, if you're going to store a copy of $c in your classes, weaken
them first using Scalar::Util::weaken

Of course, I could be full of it. :-)

-=Chris

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to