Ticket #926: fix_gc_bug.patch

File fix_gc_bug.patch, 0.7 KB (added by jrtayloriv, 12 years ago)

fixes gc error in original patch

  • src/pmc/continuation.pmc

     
    100100        attrs->address   = PARROT_CONTINUATION(values)->address; 
    101101        attrs->current_results = attrs->to_ctx->current_results; 
    102102 
     103        PObj_active_destroy_SET(SELF); 
    103104        PObj_custom_mark_destroy_SETALL(SELF); 
    104105 
    105106        /* PANIC("don't do that"); */ 
     
    159160#endif 
    160161            if (cc->from_ctx) 
    161162                Parrot_free_context(interp, cc->from_ctx, 1); 
    162  
    163             if (cc->to_ctx) 
    164                 Parrot_free_context(interp, cc->to_ctx, 1); 
    165163        } 
    166164    } 
    167165/*