aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Window.pm
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-11-08 22:06:06 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-11-08 22:06:06 +0000
commit2082d8f2b89d9feba7549e407983e43bb10dd82f (patch)
tree5446388de5077af1051be5f0de24084c4ffc2cf9 /lib/Reaction/UI/Window.pm
parente4f841e00752c41d5caca27f865c22aa2dd3cd5c (diff)
downloadreaction-2082d8f2b89d9feba7549e407983e43bb10dd82f.tar.gz
reaction-2082d8f2b89d9feba7549e407983e43bb10dd82f.zip
fix mempory leak where we were leaking $c every request
Diffstat (limited to 'lib/Reaction/UI/Window.pm')
-rw-r--r--lib/Reaction/UI/Window.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Reaction/UI/Window.pm b/lib/Reaction/UI/Window.pm
index 860bda8..2865e0e 100644
--- a/lib/Reaction/UI/Window.pm
+++ b/lib/Reaction/UI/Window.pm
@@ -6,7 +6,7 @@ use Reaction::UI::FocusStack;
use namespace::clean -except => [ qw(meta) ];
-has ctx => (isa => 'Catalyst', is => 'ro', required => 1);
+has ctx => (isa => 'Catalyst', is => 'ro', required => 1, weak_ref => 1);
has view_name => (isa => 'Str', is => 'ro', lazy_fail => 1);
has content_type => (isa => 'Str', is => 'rw', lazy_fail => 1);
has title => (isa => 'Str', is => 'rw', default => sub { 'Untitled window' });