Skip to content

Commit

Permalink
Save even more method calls in destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed Sep 14, 2014
1 parent 91eae37 commit 8cadf89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Inline/Perl5.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ class Perl5Object {
method sink() { self }

method DESTROY {
$!perl5.sv_refcnt_dec($.ptr) if $.ptr;
$!ptr = Any;
$!perl5.sv_refcnt_dec($!ptr) if $!ptr;
$!ptr = OpaquePointer;
}
}

Expand Down

0 comments on commit 8cadf89

Please sign in to comment.