gsk: Fix uninitialized memory
authorMatthias Clasen <mclasen@redhat.com>
Wed, 16 Oct 2019 00:54:24 +0000 (20:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Oct 2019 00:54:24 +0000 (20:54 -0400)
This was causing crashes in some circumstances.

gsk/gskrendernodeimpl.c

index b8bd749fa5397510c474c5526eeac9b87452b0d2..c362a6fa53ae7aef7aa4875ec64156250b5d05ee 100644 (file)
@@ -3547,6 +3547,7 @@ gsk_text_node_new (PangoFont              *font,
   self->has_color_glyphs = font_has_color_glyphs (font);
   self->color = *color;
   self->offset = *offset;
+  self->render_data = NULL;
   self->num_glyphs = glyphs->num_glyphs;
   memcpy (self->glyphs, glyphs->glyphs, sizeof (PangoGlyphInfo) * glyphs->num_glyphs);