Skip to content
This repository has been archived by the owner. It is now read-only.

Fix dangling pointer causing corrupted output in fill_rect #94

Merged
merged 1 commit into from Aug 17, 2014

Commits on Aug 16, 2014

  1. Fix dangling pointer causing corrupted output in fill_rect

    The `draw_options` variable within the match expression is only valid
    for the duration of the match expression, but by using an unsafe pointer
    the code manages to violate the lifetime rules and creates a pointer
    to it that's outlives the match expression.
    
    Instead of creating a copy of the AzDrawOptions in the match, we can get
    a ref to the one contained in the Option and hand out of pointer to that
    one, which lives long enough.
    
    Refs servo/servo#3084.
    dotdash committed Aug 16, 2014
You can’t perform that action at this time.