X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FSafe.pm;h=8e307c25743f6753db2f9766cdd755047990c69e;hb=cfe6ddf632ec8f9ce9569fbf4c7e759160ba3419;hp=0e445c619154f95692be39b24062fbc150c8a500;hpb=1b913e5c8826cae2355b0076ec5701aa3ce63c63;p=chaz%2Fp5-File-KDBX diff --git a/lib/File/KDBX/Safe.pm b/lib/File/KDBX/Safe.pm index 0e445c6..8e307c2 100644 --- a/lib/File/KDBX/Safe.pm +++ b/lib/File/KDBX/Safe.pm @@ -48,7 +48,7 @@ sub new { return $self; } -sub DESTROY { !in_global_destruction and $_[0]->unlock } +sub DESTROY { local ($., $@, $!, $^E, $?); !in_global_destruction and $_[0]->unlock } =method clear