X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=sv.c;h=20595124ffe578f381f04ebdef215f20202a2fe4;hb=eba1666137b7e1350d666a934a5e99ced3f50088;hp=f125409ced470c7dc0a1f24374f8f4e3d8646de8;hpb=f5b5f37776801bcd4e0e224cce08c5281487334a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/sv.c b/sv.c index f125409..2059512 100644 --- a/sv.c +++ b/sv.c @@ -5098,7 +5098,9 @@ Perl_sv_clear(pTHX_ register SV *sv) } if (SvOBJECT(sv)) { - if (PL_defstash) { /* Still have a symbol table? */ + if (PL_defstash && /* Still have a symbol table? */ + SvDESTROYABLE(sv)) + { dSP; HV* stash; do { @@ -11365,6 +11367,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, PL_lockhook = proto_perl->Ilockhook; PL_unlockhook = proto_perl->Iunlockhook; PL_threadhook = proto_perl->Ithreadhook; + PL_destroyhook = proto_perl->Idestroyhook; #ifdef THREADS_HAVE_PIDS PL_ppid = proto_perl->Ippid;