Changeset 5392 for trunk/core/lib/Foswiki.pm
- Timestamp:
- 10/29/09 11:09:03 (3 years ago)
- File:
-
- 1 edited
-
trunk/core/lib/Foswiki.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki.pm
r5279 r5392 1554 1554 $query ||= new Foswiki::Request(); 1555 1555 my $this = bless( { sandbox => 'Foswiki::Sandbox' }, $class ); 1556 1556 1557 $this->{request} = $query; 1557 1558 $this->{cgiQuery} = $query; # for backwards compatibility in contribs … … 1908 1909 =begin TML 1909 1910 1911 ---++ ObjectMethod DESTROY() 1912 1913 called by Perl when the Foswiki object goes out of scope 1914 (maybe should be used kist to ASSERT that finish() was called.. 1915 1916 =cut 1917 1918 #sub DESTROY { 1919 # my $this = shift; 1920 # $this->finish(); 1921 #} 1922 1923 =begin TML 1924 1910 1925 ---++ ObjectMethod finish() 1911 1926 Break circular references. … … 1920 1935 1921 1936 $_->finish() foreach values %{ $this->{forms} }; 1922 $this->{plugins}->finish() if $this->{plugins};1937 $this->{plugins}->finish() if $this->{plugins}; 1923 1938 undef $this->{plugins}; 1924 $this->{users}->finish() if $this->{users};1939 $this->{users}->finish() if $this->{users}; 1925 1940 undef $this->{users}; 1926 $this->{prefs}->finish() if $this->{prefs};1941 $this->{prefs}->finish() if $this->{prefs}; 1927 1942 undef $this->{prefs}; 1928 1943 $this->{templates}->finish() if $this->{templates}; 1929 1944 undef $this->{templates}; 1930 $this->{renderer}->finish() if $this->{renderer};1945 $this->{renderer}->finish() if $this->{renderer}; 1931 1946 undef $this->{renderer}; 1932 $this->{net}->finish() if $this->{net};1947 $this->{net}->finish() if $this->{net}; 1933 1948 undef $this->{net}; 1934 $this->{store}->finish() if $this->{store};1949 $this->{store}->finish() if $this->{store}; 1935 1950 undef $this->{store}; 1936 $this->{search}->finish() if $this->{search};1951 $this->{search}->finish() if $this->{search}; 1937 1952 undef $this->{search}; 1938 $this->{attach}->finish() if $this->{attach};1953 $this->{attach}->finish() if $this->{attach}; 1939 1954 undef $this->{attach}; 1940 $this->{security}->finish() if $this->{security};1955 $this->{security}->finish() if $this->{security}; 1941 1956 undef $this->{security}; 1942 $this->{i18n}->finish() if $this->{i18n};1957 $this->{i18n}->finish() if $this->{i18n}; 1943 1958 undef $this->{i18n}; 1944 1959 $this->{cache}->finish() if $this->{cache}; 1945 1960 undef $this->{cache}; 1961 #TODO: the logger doesn't seem to have a finish... 1962 # $this->{logger}->finish() if $this->{logger}; 1963 undef $this->{logger}; 1946 1964 1947 1965 undef $this->{_HTMLHEADERS};
Note: See TracChangeset
for help on using the changeset viewer.
