projects
/
catagits/Reaction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
04560f9
)
declaring ->ctx as a weak ref to avoid memory leaks
edenc [Thu, 30 Oct 2008 22:28:16 +0000 (22:28 +0000)]
lib/Reaction/UI/ViewPort.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Reaction/UI/ViewPort.pm
b/lib/Reaction/UI/ViewPort.pm
index
c89e2e9
..
5e6f39c
100644
(file)
--- a/
lib/Reaction/UI/ViewPort.pm
+++ b/
lib/Reaction/UI/ViewPort.pm
@@
-19,7
+19,7
@@
has focus_stack => (
has _tangent_stacks => (
isa => 'HashRef', is => 'ro', default => sub { {} }
);
-has ctx => (isa => 'Catalyst', is => 'ro'); #, required => 1);
+has ctx => (isa => 'Catalyst', is => 'ro', weak_ref => 1); #, required => 1);
sub _build_layout {
'';