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 ♊ <garri...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt


_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to