Ignore:
Timestamp:
10/25/09 07:49:40 (3 years ago)
Author:
SvenDowideit
Message:

Item2286: lots of missing calls to Foswiki::finish(), will refactor in trunk - just cleaning in release branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x00/core/lib/Foswiki.pm

    r5296 r5375  
    13941394    $query ||= new Foswiki::Request(); 
    13951395    my $this = bless( { sandbox => 'Foswiki::Sandbox' }, $class ); 
     1396 
    13961397    $this->{request}  = $query; 
    13971398    $this->{cgiQuery} = $query;    # for backwards compatibility in contribs 
     
    17661767=begin TML 
    17671768 
     1769---++ ObjectMethod DESTROY() 
     1770 
     1771called by Perl when the Foswiki object goes out of scope 
     1772(maybe should be used kist to ASSERT that finish() was called.. 
     1773 
     1774=cut 
     1775 
     1776#sub DESTROY { 
     1777#    my $this = shift; 
     1778#    $this->finish(); 
     1779#} 
     1780 
     1781=begin TML 
     1782 
    17681783---++ ObjectMethod finish() 
    17691784Break circular references. 
     
    17791794    $_->finish() foreach values %{ $this->{forms} }; 
    17801795    $this->{plugins}->finish()   if $this->{plugins}; 
     1796    undef $this->{plugins}; 
    17811797    $this->{users}->finish()     if $this->{users}; 
     1798    undef $this->{users}; 
    17821799    $this->{prefs}->finish()     if $this->{prefs}; 
     1800    undef $this->{prefs}; 
    17831801    $this->{templates}->finish() if $this->{templates}; 
     1802    undef $this->{templates}; 
    17841803    $this->{renderer}->finish()  if $this->{renderer}; 
     1804    undef $this->{renderer}; 
    17851805    $this->{net}->finish()       if $this->{net}; 
     1806    undef $this->{net}; 
    17861807    $this->{store}->finish()     if $this->{store}; 
     1808    undef $this->{store}; 
    17871809    $this->{search}->finish()    if $this->{search}; 
     1810    undef $this->{search}; 
    17881811    $this->{attach}->finish()    if $this->{attach}; 
     1812    undef $this->{attach}; 
    17891813    $this->{security}->finish()  if $this->{security}; 
     1814    undef $this->{security}; 
    17901815    $this->{i18n}->finish()      if $this->{i18n}; 
    1791  
     1816    undef $this->{i18n}; 
     1817#TODO: the logger doesn't seem to have a finish... 
     1818#    $this->{logger}->finish()      if $this->{logger}; 
     1819    undef $this->{logger}; 
     1820     
    17921821    undef $this->{_HTMLHEADERS}; 
    17931822    undef $this->{request}; 
Note: See TracChangeset for help on using the changeset viewer.