Forward port Album cache delete/DESTROY issue with non-existant

keys in the cache.
This commit is contained in:
Colin Kuskie 2009-01-01 16:14:36 +00:00
parent 436ca52676
commit 7d5e5eb581
2 changed files with 2 additions and 1 deletions

View file

@ -346,7 +346,7 @@ sub DESTROY {
my $self = shift;
for my $key ( qw/ _nextAlbum _prevAlbum / ) {
my $asset = delete $self->{ $key };
$asset->DESTROY;
$asset->DESTROY if $asset;
}
}