From db4723d9cd84bbed5afb9bfb52cec12e14645bb5 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 30 Jan 2008 01:22:36 +0000 Subject: [PATCH] Bug 414002: Temporary files for uploaded attachments are not deleted on Windows - Patch by Steve Hay r/a=LpSolit --- Bugzilla/CGI.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index b84f18da62..aa2587ef2a 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -48,7 +48,10 @@ $| = 1; # We need to do so, too, otherwise perl dies when the object is destroyed # and we don't have a DESTROY method (because CGI.pm's AUTOLOAD will |die| # on getting an unknown sub to try to call) -sub DESTROY {}; +sub DESTROY { + my $self = shift; + $self->SUPER::DESTROY(@_); +}; sub new { my ($invocant, @args) = @_; -- 2.47.2