Skip to content

Commit

Permalink
Bug 1284521 - Reference is already weak at Bugzilla/Comment.pm line 245.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Hardison committed Jul 13, 2016
1 parent 1497693 commit af9f0e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bugzilla/Comment.pm
Expand Up @@ -34,7 +34,7 @@ use Bugzilla::User;
use Bugzilla::Util;

use List::Util qw(first);
use Scalar::Util qw(blessed weaken);
use Scalar::Util qw(blessed weaken isweak);

###############################
#### Initialization ####
Expand Down Expand Up @@ -242,7 +242,7 @@ sub bug {
my $self = shift;
require Bugzilla::Bug;
my $bug = $self->{bug} ||= new Bugzilla::Bug($self->bug_id);
weaken($self->{bug});
weaken($self->{bug}) unless isweak($self->{bug});
return $bug;
}

Expand Down

0 comments on commit af9f0e1

Please sign in to comment.