Skip to content

Commit

Permalink
Item13897: Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Mar 15, 2016
1 parent 4976d59 commit 6c23e5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions UnitTestContrib/test/unit/FoswikiTestCase.pm
Expand Up @@ -1080,6 +1080,7 @@ sub finishFoswikiSession {
#use Devel::Refcount;
#say STDERR "session refcount: ", Devel::Refcount::refcount($this->session);
$this->clear_session;
undef $Foswiki::Plugins::SESSION if $Foswiki::Plugins::SESSION;
ASSERT( !$Foswiki::Plugins::SESSION ) if SINGLE_SINGLETONS;

return;
Expand Down
1 change: 1 addition & 0 deletions core/lib/Foswiki.pm
Expand Up @@ -2685,6 +2685,7 @@ sub DEMOLISH {
$this->clear_plugins;
$this->clear_forms;
if ( $this == $Foswiki::Plugins::SESSION ) {

#say STDERR $this, " Here we clear the old Plugins::SESSION";
undef $Foswiki::Plugins::SESSION;
}
Expand Down

0 comments on commit 6c23e5e

Please sign in to comment.