Use check_new in padlist_size.
Tim Bunce [Wed, 26 Sep 2012 15:09:52 +0000 (00:09 +0900)]
Size.xs

diff --git a/Size.xs b/Size.xs
index 2c9dfba..d0876ca 100644 (file)
--- a/Size.xs
+++ b/Size.xs
@@ -977,9 +977,9 @@ padlist_size(pTHX_ struct state *const st, pPATH, PADLIST *padlist,
     SV **pname;
     I32 ix;              
 
-    if (!padlist) {
+    if(!check_new(st, padlist))
         return;
-    }
+
     pad_name = MUTABLE_AV(*av_fetch(MUTABLE_AV(padlist), 0, FALSE));
     pname = AvARRAY(pad_name);