mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-25 08:30:39 +02:00
[scaled-font] Initialise original_font_face
Eek, attempting to use+free an uninitialised pointer!
This commit is contained in:
parent
9099c7e730
commit
121d4bb656
1 changed files with 1 additions and 0 deletions
|
|
@ -777,6 +777,7 @@ _cairo_scaled_font_init (cairo_scaled_font_t *scaled_font,
|
|||
_cairo_user_data_array_init (&scaled_font->user_data);
|
||||
|
||||
cairo_font_face_reference (font_face);
|
||||
scaled_font->original_font_face = NULL;
|
||||
|
||||
CAIRO_MUTEX_INIT (scaled_font->mutex);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue