Changeset 5375 for branches/Release01x00/core/lib/Foswiki.pm
- Timestamp:
- 10/25/09 07:49:40 (3 years ago)
- File:
-
- 1 edited
-
branches/Release01x00/core/lib/Foswiki.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x00/core/lib/Foswiki.pm
r5296 r5375 1394 1394 $query ||= new Foswiki::Request(); 1395 1395 my $this = bless( { sandbox => 'Foswiki::Sandbox' }, $class ); 1396 1396 1397 $this->{request} = $query; 1397 1398 $this->{cgiQuery} = $query; # for backwards compatibility in contribs … … 1766 1767 =begin TML 1767 1768 1769 ---++ ObjectMethod DESTROY() 1770 1771 called 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 1768 1783 ---++ ObjectMethod finish() 1769 1784 Break circular references. … … 1779 1794 $_->finish() foreach values %{ $this->{forms} }; 1780 1795 $this->{plugins}->finish() if $this->{plugins}; 1796 undef $this->{plugins}; 1781 1797 $this->{users}->finish() if $this->{users}; 1798 undef $this->{users}; 1782 1799 $this->{prefs}->finish() if $this->{prefs}; 1800 undef $this->{prefs}; 1783 1801 $this->{templates}->finish() if $this->{templates}; 1802 undef $this->{templates}; 1784 1803 $this->{renderer}->finish() if $this->{renderer}; 1804 undef $this->{renderer}; 1785 1805 $this->{net}->finish() if $this->{net}; 1806 undef $this->{net}; 1786 1807 $this->{store}->finish() if $this->{store}; 1808 undef $this->{store}; 1787 1809 $this->{search}->finish() if $this->{search}; 1810 undef $this->{search}; 1788 1811 $this->{attach}->finish() if $this->{attach}; 1812 undef $this->{attach}; 1789 1813 $this->{security}->finish() if $this->{security}; 1814 undef $this->{security}; 1790 1815 $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 1792 1821 undef $this->{_HTMLHEADERS}; 1793 1822 undef $this->{request};
Note: See TracChangeset
for help on using the changeset viewer.
