forked from AuroraMiddleware/gtk
cssimage: Fix huge memleak
When transitioning gradients, we were leaking the gradient structs. Not good. https://bugzilla.gnome.org/show_bug.cgi?id=687467
This commit is contained in:
parent
9876fc4f17
commit
e9dc0e391d
@ -79,7 +79,7 @@ fade_pattern (cairo_pattern_t *pattern,
|
||||
cairo_pattern_add_color_stop_rgba (result, o, r, g, b, a * opacity);
|
||||
}
|
||||
|
||||
return pattern;
|
||||
return result;
|
||||
}
|
||||
|
||||
static cairo_pattern_t *
|
||||
|
Loading…
Reference in New Issue
Block a user