[svn:parrot] r39241 - trunk/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Fri May 29 22:03:15 UTC 2009


Author: chromatic
Date: Fri May 29 22:03:13 2009
New Revision: 39241
URL: https://trac.parrot.org/parrot/changeset/39241

Log:
[PMC] Plugged a memory leak in the Float PMC by setting its active destroy
flag.  CAGE cleaners?

Modified:
   trunk/src/pmc/float.pmc

Modified: trunk/src/pmc/float.pmc
==============================================================================
--- trunk/src/pmc/float.pmc	Fri May 29 21:35:08 2009	(r39240)
+++ trunk/src/pmc/float.pmc	Fri May 29 22:03:13 2009	(r39241)
@@ -33,8 +33,11 @@
 
     VTABLE void init() {
         Parrot_Float_attributes * const fattr = mem_allocate_zeroed_typed(Parrot_Float_attributes);
-        fattr->fv = 0.0;
+
+        fattr->fv      = 0.0;
         PMC_data(SELF) = fattr;
+
+        PObj_active_destroy_SET(SELF);
     }
 /*
 


More information about the parrot-commits mailing list