X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FPurePerl.pm;h=802289d257e83fe750a4df8597e0f2d23064179b;hp=f6c5e5bb66470a65a8c613d279a188db6c3cd2e2;hb=6514735e9b5d79f955badf9f50970ee768a44337;hpb=e9148d131f7c3d6a1e3fc9e7c491f80fb5dde90b diff --git a/lib/Mouse/PurePerl.pm b/lib/Mouse/PurePerl.pm index f6c5e5b..802289d 100644 --- a/lib/Mouse/PurePerl.pm +++ b/lib/Mouse/PurePerl.pm @@ -627,7 +627,7 @@ sub DESTROY { my $demolish = Mouse::Util::get_code_ref($class, 'DEMOLISH') || next; - $self->$demolish(); + $self->$demolish($Mouse::Util::in_global_destruction); } }; $@;