[svn:parrot] r39236 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Fri May 29 10:05:02 UTC 2009
Author: chromatic
Date: Fri May 29 10:05:02 2009
New Revision: 39236
URL: https://trac.parrot.org/parrot/changeset/39236
Log:
[PMC] Plugged a memory leak in the LexPad PMC by enabling its active destroy
flag. All PMCs with ATTRs need this flag and a destroy entry.
Modified:
trunk/src/pmc/lexpad.pmc
Modified: trunk/src/pmc/lexpad.pmc
==============================================================================
--- trunk/src/pmc/lexpad.pmc Fri May 29 09:52:35 2009 (r39235)
+++ trunk/src/pmc/lexpad.pmc Fri May 29 10:05:02 2009 (r39236)
@@ -80,6 +80,9 @@
VTABLE void init_pmc(PMC *lexinfo) {
Parrot_LexPad_attributes * const attrs =
mem_allocate_zeroed_typed(Parrot_LexPad_attributes);
+
+ PObj_active_destroy_SET(SELF);
+
attrs->lexinfo = lexinfo;
PMC_data(SELF) = attrs;
}
More information about the parrot-commits
mailing list