memory leak. catalyst 5.8 will fix this problem
groditi [Wed, 11 Mar 2009 20:47:19 +0000 (20:47 +0000)]
lib/Reaction/UI/Controller.pm

index 45a85d8..56e5b2d 100644 (file)
@@ -12,6 +12,7 @@ with 'Catalyst::Component::InstancePerContext';
 sub build_per_context_instance {
   my ($self, $c, @args) = @_;
   my $newself =  $self->new($self->_application, {%$self, context => $c, @args});
+  weaken $newself->{context}; #stopgap till cat 5.8
   return $newself;
 }