aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-11-11 19:51:04 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-11-11 19:51:04 +0000
commit0209ee1b140549013842f9534b2d9d8b79d1e152 (patch)
treecad1774f3008580f671cffdecaf45167c516b996 /lib
parent2082d8f2b89d9feba7549e407983e43bb10dd82f (diff)
downloadreaction-0209ee1b140549013842f9534b2d9d8b79d1e152.tar.gz
reaction-0209ee1b140549013842f9534b2d9d8b79d1e152.zip
other memory leak
Diffstat (limited to 'lib')
-rw-r--r--lib/ComponentUI/Controller/Root.pm4
-rw-r--r--lib/Reaction/InterfaceModel/Action.pm3
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/ComponentUI/Controller/Root.pm b/lib/ComponentUI/Controller/Root.pm
index 4113a73..9f57fa9 100644
--- a/lib/ComponentUI/Controller/Root.pm
+++ b/lib/ComponentUI/Controller/Root.pm
@@ -31,6 +31,10 @@ sub root :Chained('base') :PathPart('') :Args(0) {
$self->push_viewport(ViewPort, layout => 'index');
}
+sub bye :Chained('base') :PathPart('bye') :Args(0) {
+ exit;
+}
+
sub static :Chained('base') :PathPart('static') :Args {
my ($self, $c, @args) = @_;
return if $c->stash->{window}->view->serve_static_file($c, \@args);
diff --git a/lib/Reaction/InterfaceModel/Action.pm b/lib/Reaction/InterfaceModel/Action.pm
index 54935b6..12234ec 100644
--- a/lib/Reaction/InterfaceModel/Action.pm
+++ b/lib/Reaction/InterfaceModel/Action.pm
@@ -18,7 +18,8 @@ has ctx => (
isa => 'Catalyst',
is => 'ro',
lazy_fail => 1,
- metaclass => 'Reaction::Meta::Attribute'
+ metaclass => 'Reaction::Meta::Attribute',
+ weak_ref => 1,
);
sub parameter_attributes {