1. cluster seems to have a memory leak, put DESTROY functions in where
[spider.git] / perl / DXChannel.pm
index 754cd5387127edab92d73b6ebec42a93199b5f05..6495e7a7edde6ed7e9ff32ac5630e755d9053816 100644 (file)
@@ -76,6 +76,22 @@ use vars qw(%channels %valid);
                  passwd => '9,Passwd List,parray',
                 );
 
+# object destruction
+sub DESTROY
+{
+       my $self = shift;
+       undef $self->{user};
+       undef $self->{conn};
+       undef $self->{loc};
+       undef $self->{pagedata};
+       undef $self->{group};
+       undef $self->{delayed};
+       undef $self->{annfilter};
+       undef $self->{wwvfilter};
+       undef $self->{spotfilter};
+       undef $self->{passwd};
+}
+
 # create a new channel object [$obj = DXChannel->new($call, $msg_conn_obj, $user_obj)]
 sub alloc
 {