1. cluster seems to have a memory leak, put DESTROY functions in where
[spider.git] / perl / DXMsg.pm
index a43880a2987dc729d77bac8c29e199ce9d3ca82b..87129ea0ed1ce990391b2f182dbeffd6c545a93d 100644 (file)
@@ -67,6 +67,13 @@ $forwardfn = "$msgdir/forward.pl";  # the forwarding table
                  keep => '0,Keep this?,yesno',
                 );
 
+sub DESTROY
+{
+       my $self = shift;
+       undef $self->{lines};
+       undef $self->{gotit};
+}
+
 # allocate a new object
 # called fromnode, tonode, from, to, datetime, private?, subject, nolinesper  
 sub alloc