diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-01-18 23:36:57 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-01-18 23:36:57 +0000 |
commit | d011219a10588387f38d2a324f878298ed1ec560 (patch) | |
tree | 8949b734ece221e9588375e4b192e68ebab32663 /sv.c | |
parent | 5ea311549f31198b7d212726049e2499952eee98 (diff) | |
download | perl-d011219a10588387f38d2a324f878298ed1ec560.tar.gz |
Move the flag checking for isGV_with_GP() into the call to visit()
p4raw-id: //depot/perl@29876
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -471,7 +471,8 @@ do_clean_named_objs(pTHX_ SV *sv) { dVAR; assert(SvTYPE(sv) == SVt_PVGV); - if (isGV_with_GP(sv) && GvGP(sv)) { + assert(isGV_with_GP(sv)); + if (GvGP(sv)) { if (( #ifdef PERL_DONT_CREATE_GVSV GvSV(sv) && @@ -506,7 +507,7 @@ Perl_sv_clean_objs(pTHX) visit(do_clean_objs, SVf_ROK, SVf_ROK); #ifndef DISABLE_DESTRUCTOR_KLUDGE /* some barnacles may yet remain, clinging to typeglobs */ - visit(do_clean_named_objs, SVt_PVGV, SVTYPEMASK); + visit(do_clean_named_objs, SVt_PVGV|SVpgv_GP, SVTYPEMASK|SVp_POK|SVpgv_GP); #endif PL_in_clean_objs = FALSE; } |