From 173bb2e1e892416190eaeb63e088bc1b1968f6fd Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 15 Oct 2019 20:54:24 -0400 Subject: [PATCH] gsk: Fix uninitialized memory This was causing crashes in some circumstances. --- gsk/gskrendernodeimpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index b8bd749fa5..c362a6fa53 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -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);