more object destruction cleanups
This commit is contained in:
parent
c4204eff89
commit
a1d8dbd67a
4 changed files with 11 additions and 34 deletions
|
|
@ -238,13 +238,12 @@ and next threads, and to delete the parent CS.
|
|||
|
||||
=cut
|
||||
|
||||
override DESTROY => sub {
|
||||
my $self = shift;
|
||||
return undef unless defined $self;
|
||||
$self->{_next}->DESTROY if (defined $self->{_next});
|
||||
$self->{_previous}->DESTROY if (defined $self->{_previous});
|
||||
super();
|
||||
};
|
||||
sub DEMOLISH {
|
||||
my $self = shift;
|
||||
return undef unless defined $self;
|
||||
$self->{_next}->DESTROY if (defined $self->{_next});
|
||||
$self->{_previous}->DESTROY if (defined $self->{_previous});
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue