From: Dietmar Maurer Date: Wed, 31 Dec 2014 16:11:28 +0000 (+0100) Subject: RESTHandler: define empty DESTROY to avoid useless warings X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=f1fb34a0a502368ff2a2c2f6f7b05245a199f735 RESTHandler: define empty DESTROY to avoid useless warings We oserverd the following warning sometimes: (in cleanup) no such method 'main=HASH(0x38b2d48)::DESTROY' Defining an empty DESTROY seems to avoid it. --- diff --git a/data/PVE/RESTHandler.pm b/data/PVE/RESTHandler.pm index 23a29ea..4153192 100644 --- a/data/PVE/RESTHandler.pm +++ b/data/PVE/RESTHandler.pm @@ -265,6 +265,8 @@ sub register_page_formatter { $info->{formatter}->{$format} = $code; } +sub DESTROY {}; # avoid problems with autoload + sub AUTOLOAD { my ($this) = @_;