[html-formfu] Possible leak with Catalyst::Controller::HTML::FormFu
    Charlie Garrison 
    garrison at zeta.org.au
       
    Tue Mar 15 04:23:10 GMT 2011
    
    
  
Good afternoon,
While trying to plug some leaks in my app (using 
CatalystX::LeakChecker to find them) some of the listed leaks 
appear to have come from C::C::HTML::FormFu. I seem to recall 
this being discussed here previously but I couldn't see any 
fixes/patches for it in the git repo. I applied the following 
patch and I'm not getting any more of the leaks I saw before.
  diff --git a/lib/Catalyst/Controller/HTML/FormFu.pm b/lib/Catalyst/Controller/HTML/FormFu.pm
  index 04847fb..c1b069f 100644
  --- a/lib/Catalyst/Controller/HTML/FormFu.pm
  +++ b/lib/Catalyst/Controller/HTML/FormFu.pm
  @@ -27,6 +27,8 @@ sub build_per_context_instance {
       my ( $self, $c ) = @_;
       $self->{c} = $c;
  +       weaken( $self->{c} )
  +               if !isweak( $self->{c} );
       return $self;
   }
If that patch looks sane, could someone please apply it, or do I 
need to fork the git repo and send a pull request?
Thanks,
Charlie
-- 
    Ꮚ Charlie Garrison ♊ <garrison at zeta.org.au>
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt
    
    
More information about the HTML-FormFu
mailing list