=================================================================== RCS file: /cvs/todotxt/Text-Todo/lib/Text/Todo.pm,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- todotxt/Text-Todo/lib/Text/Todo.pm 2010/01/18 03:04:48 1.20 +++ todotxt/Text-Todo/lib/Text/Todo.pm 2010/01/19 18:45:53 1.21 @@ -1,6 +1,6 @@ package Text::Todo; -# $AFresh1: Todo.pm,v 1.19 2010/01/18 02:46:48 andrew Exp $ +# $AFresh1: Todo.pm,v 1.20 2010/01/18 03:04:48 andrew Exp $ use warnings; use strict; @@ -389,9 +389,12 @@ sub DESTROY { my ($self) = @_; my $ident = ident $self; + foreach my $attr_ref (@attr_refs) { delete $attr_ref->{$ident}; } + + return; } } @@ -408,7 +411,7 @@ Since the $VERSION can't be automatically included, here is the RCS Id instead, you'll have to look up $VERSION. - $Id: Todo.pm,v 1.20 2010/01/18 03:04:48 andrew Exp $ + $Id: Todo.pm,v 1.21 2010/01/19 18:45:53 andrew Exp $ =head1 SYNOPSIS