X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=225a09a14ac05ccbee14ca31247142928551d36e;hp=927d363b50536bce45e30ea7e44c48b68351d981;hb=ee2c12fdbfa4662604cf07fa488b5c43c1e25b80;hpb=5bec3c066856eaf822d757d6c8295276ddb9d281 diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 927d363..225a09a 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -23,7 +23,7 @@ use namespace::clean -except => 'meta'; our $CHUNKSIZE = 64 * 1024; # XXX - this is only here for compat, do not use! -has env => ( is => 'rw', writer => '_set_env' ); +has env => ( is => 'rw', writer => '_set_env' , weak_ref=>1); my $WARN_ABOUT_ENV = 0; around env => sub { my ($orig, $self, @args) = @_;