gl renderer: Fix an out of bounds read

Fixes #2200
This commit is contained in:
Timm Bäder 2019-10-15 07:13:14 +02:00
parent acb7f437fa
commit 5ea21f7910

View File

@ -381,7 +381,7 @@ add_rect_outline_ops (GskGLRenderer *self,
RenderOpBuilder *builder, RenderOpBuilder *builder,
const graphene_rect_t *rect) const graphene_rect_t *rect)
{ {
GdkRGBA *color = gdk_rgba_copy (&GDK_RGBA ("#F00")); /* Leaked */ GdkRGBA *color = gdk_rgba_copy (&GDK_RGBA ("F00")); /* Leaked */
ops_set_program (builder, &self->color_program); ops_set_program (builder, &self->color_program);
ops_set_color (builder, color); ops_set_color (builder, color);