ARGHGHGHGH!!! FUCKING UNREFERENCED GLOB/
Yuval Kogman [Tue, 12 Aug 2008 18:24:25 +0000 (18:24 +0000)]
MOP.xs

diff --git a/MOP.xs b/MOP.xs
index 8506f36..bddb885 100644 (file)
--- a/MOP.xs
+++ b/MOP.xs
@@ -142,7 +142,7 @@ get_all_package_symbols(self, ...)
                         SPAGAIN;
                         EXTEND(SP, 2);
                         PUSHs(key);
-                        PUSHs(newRV_noinc(sv));
+                        PUSHs(sv_2mortal(newRV_inc(sv)));
                         PUTBACK;
                     }
                 }