mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-05 13:50:19 +01:00
[cairo-ft-font] Decrement lock count on error.
As noted in http://bugs.freedesktop.org/show_bug.cgi?id=12026 the error path of _cairo_ft_unscaled_font_lock_face() failed to reset the unscaled->lock_count before releasing the mutex and returning NULL.
This commit is contained in:
parent
8881265cca
commit
bc635da45a
1 changed files with 1 additions and 0 deletions
|
|
@ -552,6 +552,7 @@ _cairo_ft_unscaled_font_lock_face (cairo_ft_unscaled_font_t *unscaled)
|
|||
unscaled->id,
|
||||
&face) != FT_Err_Ok)
|
||||
{
|
||||
unscaled->lock_count--;
|
||||
CAIRO_MUTEX_UNLOCK (unscaled->mutex);
|
||||
_cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue