summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hv.c b/hv.c
index ecbd548bcb..806e573d5c 100644
--- a/hv.c
+++ b/hv.c
@@ -752,6 +752,8 @@ I32 shared;
{
if (!hent)
return;
+ if (SvTYPE(HeVAL(hent)) == SVt_PVGV)
+ sub_generation++; /* May be deletion of method? */
SvREFCNT_dec(HeVAL(hent));
if (HeKLEN(hent) == HEf_SVKEY) {
SvREFCNT_dec(HeKEY_sv(hent));