mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[ft] Use a lock-guard
This commit is contained in:
parent
aa268fc8ef
commit
7791f50e3a
1 changed files with 1 additions and 2 deletions
|
@ -213,11 +213,10 @@ _hb_ft_hb_font_check_changed (hb_font_t *font,
|
|||
{
|
||||
if (font->serial != ft_font->cached_serial)
|
||||
{
|
||||
ft_font->lock.lock ();
|
||||
hb_lock_t lock (ft_font->lock);
|
||||
_hb_ft_hb_font_changed (font, ft_font->ft_face);
|
||||
ft_font->advance_cache.clear ();
|
||||
ft_font->cached_serial = font->serial;
|
||||
ft_font->lock.unlock ();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue