Forward port Album cache delete/DESTROY issue with non-existant
keys in the cache.
This commit is contained in:
parent
436ca52676
commit
7d5e5eb581
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue