[gtk/wip/matthiasc/opbuffer] gsk: Fix uninitialized memory



commit 173bb2e1e892416190eaeb63e088bc1b1968f6fd
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 15 20:54:24 2019 -0400

    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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]