Fix a memory leak in generate_isa_predicate_for()
[gitmo/Mouse.git] / xs-src / MouseUtil.xs
index b8afb80..006eab2 100644 (file)
@@ -377,6 +377,6 @@ PPCODE:
     }
 
     if(predicate_name == NULL){ /* anonymous predicate */
-        XPUSHs( newRV_noinc((SV*)xsub) );
+        mXPUSHs( newRV_inc((SV*)xsub) );
     }
 }