From dcfc1119346f89d8c42dc34967cb2b2a5d4a3fc0 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 13 Dec 2005 22:53:53 +0000 Subject: [PATCH] force object out of scope to destroy instead of DESTROY method call --- lib/WebGUI/Asset/Wobject/HttpProxy.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/HttpProxy.pm b/lib/WebGUI/Asset/Wobject/HttpProxy.pm index 2cbddfa79..cf0e05c19 100644 --- a/lib/WebGUI/Asset/Wobject/HttpProxy.pm +++ b/lib/WebGUI/Asset/Wobject/HttpProxy.pm @@ -302,9 +302,10 @@ sub view { $var{content} = $1 || $var{content}; $var{"content.trailing"} = $2; } - my $p = WebGUI::Asset::Wobject::HttpProxy::Parse->new($proxiedUrl, $var{content}, $self->getId,$self->get("rewriteUrls"),$self->getUrl); - $var{content} = $p->filter; # Rewrite content. (let forms/links return to us). - $p->DESTROY; + { + my $p = WebGUI::Asset::Wobject::HttpProxy::Parse->new($proxiedUrl, $var{content}, $self->getId,$self->get("rewriteUrls"),$self->getUrl); + $var{content} = $p->filter; # Rewrite content. (let forms/links return to us). + } if ($var{content} =~ /