Turn the captured $app into a weak reference.
Florian Ragwitz [Fri, 26 Dec 2008 00:40:13 +0000 (00:40 +0000)]
Right now that won't change anything, but it'll prevent problems when $app will
be an instance.

lib/Catalyst/Component/Role/CaptureApp.pm

index 205370e..54da050 100644 (file)
@@ -5,7 +5,7 @@ use namespace::clean -except => 'meta';
 
 # Future - isa => 'ClassName|Catalyst' performance?
 #           required => 1 breaks tests..
-has _application => (is => 'ro');
+has _application => (is => 'ro', weak_ref => 1);
 sub _app { (shift)->_application(@_) }
 
 override BUILDARGS => sub {