Navigation Menu

Skip to content

Commit

Permalink
Fix memory handling in rebless_subclass
Browse files Browse the repository at this point in the history
Se tt #1746 for details
  • Loading branch information
nwellnhof authored and moritz committed Aug 31, 2010
1 parent 6ccdcda commit f8e959c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ops/perl6.ops
Expand Up @@ -145,9 +145,6 @@ inline op rebless_subclass(in PMC, in PMC) :base_core {
for (i = 0; i < new_attribs; i++)
VTABLE_set_pmc_keyed_int(interp, PARROT_OBJECT(value)->attrib_store,
i, pmc_new(interp, enum_class_Undef));

/* And make sure the new object is of the right type. */
new_ins->vtable = interp->vtables[p6o_id];
}
else if ((value->vtable->base_type != enum_class_Object && value->vtable->base_type != p6o_id)
|| current_class->vtable->base_type != enum_class_Class) {
Expand Down

0 comments on commit f8e959c

Please sign in to comment.