Adrian M. Enache [Sat, 10 Jan 2004 20:16:03 +0000 (20:16 +0000)]
after #21936 - the weak reference may live on the pad.
p4raw-id: //depot/perl@22106
SvREFCNT_inc(nmg->mg_obj = (SV*)newAV());
svp = AvARRAY(av);
for (i = AvFILLp(av); i >= 0; i--) {
- if (!svp[i] || SvREFCNT(svp[i]) < 2) continue;
+ if (!svp[i]) continue;
av_push((AV*)nmg->mg_obj,sv_dup(svp[i],param));
}
}