mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 16:07:57 +02:00
Reset cairo_scaled_font_map after freeing.
Along the error path the global font map was freed but not reset, causing segfaults on any subsequent use of a cairo_scaled_font_t.
This commit is contained in:
parent
65de47d8bc
commit
c6055dc349
1 changed files with 1 additions and 0 deletions
|
|
@ -211,6 +211,7 @@ _cairo_scaled_font_map_lock (void)
|
|||
|
||||
CLEANUP_SCALED_FONT_MAP:
|
||||
free (cairo_scaled_font_map);
|
||||
cairo_scaled_font_map = NULL;
|
||||
CLEANUP_MUTEX_LOCK:
|
||||
CAIRO_MUTEX_UNLOCK (_cairo_scaled_font_map_mutex);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue