Skip to content
Snippets Groups Projects
Commit 940ba2e5 authored by Michael Gray's avatar Michael Gray
Browse files

Z:Connection: release callback before calling it.

parent 2839b1f5
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,9 @@ sub _fire_after {
my ($self) = @_;
if (my $after = $self->after) {
$self->zircon_trace;
$self->after->();
$self->after(undef);
my $callback = $self->after;
$self->after(undef); # in case it's holding on to a circular reference
$callback->();
}
return;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment