mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-01 09:07:58 +02:00
Initialize mutexes in _cairo_ft_unscaled_font_map_lock()
This function is reachable via cairo_ft_font_face_create_for_ft_face() -> _cairo_ft_unscaled_font_create_from_face() -> _cairo_ft_unscaled_font_create_internal() -> _cairo_ft_unscaled_font_map_lock(). Thus, it could happen that nothing initialized mutexes before this code runs. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
0ae4e6a855
commit
aee96d175d
1 changed files with 2 additions and 0 deletions
|
|
@ -370,6 +370,8 @@ _cairo_ft_unscaled_font_map_destroy (void)
|
|||
static cairo_ft_unscaled_font_map_t *
|
||||
_cairo_ft_unscaled_font_map_lock (void)
|
||||
{
|
||||
CAIRO_MUTEX_INITIALIZE ();
|
||||
|
||||
CAIRO_MUTEX_LOCK (_cairo_ft_unscaled_font_map_mutex);
|
||||
|
||||
if (unlikely (cairo_ft_unscaled_font_map == NULL)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue