From: Moritz Bunkus Date: Mon, 7 Mar 2011 14:53:02 +0000 (+0100) Subject: Zirkuläre Referenzen in $::auth auflösen, damit DB-Verbindung am Ende des Requests... X-Git-Tag: release-2.6.3~53^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=43b16238344f6c4203db6b660f9d2e68807d4643;p=kivitendo-erp.git Zirkuläre Referenzen in $::auth auflösen, damit DB-Verbindung am Ende des Requests geschlossen wird Conflicts: SL/Auth/DB.pm --- diff --git a/SL/Auth/DB.pm b/SL/Auth/DB.pm index 0168896f9..dd6350623 100644 --- a/SL/Auth/DB.pm +++ b/SL/Auth/DB.pm @@ -3,6 +3,7 @@ package SL::Auth::DB; use strict; use Carp; +use Scalar::Util qw(weaken); use SL::Auth::Constants qw(:all); use SL::DBUtils; @@ -14,6 +15,7 @@ sub new { my $self = {}; $self->{auth} = shift; + weaken $self->{auth}; bless $self, $type; diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index b48506342..a2aa87e85 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -231,6 +231,7 @@ sub handle_request { # cleanup $::locale = undef; $::form = undef; + $::auth = undef; $::myconfig = (); Form::disconnect_standard_dbh; $::auth->expire_session_keys->save_session;