projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0895f02
)
gsk: Fix uninitialized memory
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 16 Oct 2019 00:54:24 +0000
(20:54 -0400)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/gsk/gskrendernodeimpl.c
b/gsk/gskrendernodeimpl.c
index b8bd749fa5397510c474c5526eeac9b87452b0d2..c362a6fa53ae7aef7aa4875ec64156250b5d05ee 100644
(file)
--- 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);