Fix a memory leak in generate_isa_predicate_for()
gfx [Tue, 2 Feb 2010 03:57:23 +0000 (12:57 +0900)]
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) );
     }
 }