[font] unlikely

This commit is contained in:
Behdad Esfahbod 2023-01-28 22:05:24 -07:00
parent 30ee7a21e1
commit c1d0daf5f1
1 changed files with 5 additions and 5 deletions

View File

@ -92,11 +92,11 @@ _hb_ot_font_create (hb_font_t *font)
cmap_cache = (hb_ot_font_cmap_cache_t *) hb_malloc (sizeof (hb_ot_font_cmap_cache_t));
if (unlikely (!cmap_cache)) goto out;
cmap_cache->init ();
if (!hb_face_set_user_data (font->face,
if (!unlikely (hb_face_set_user_data (font->face,
&hb_ot_font_cmap_cache_user_data_key,
cmap_cache,
hb_free,
false))
false)))
{
/* Normally we would retry after this, but that would
* infinite-loop if the face is the empty-face.