mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-24 16:10:39 +02:00
[ft] Don't call FT_Done_Face() on faces we did not create
This commit is contained in:
parent
9485cd947f
commit
0137b9bd32
1 changed files with 1 additions and 1 deletions
|
|
@ -528,7 +528,7 @@ _has_unlocked_face (void *entry)
|
|||
{
|
||||
cairo_ft_unscaled_font_t *unscaled = entry;
|
||||
|
||||
return (unscaled->lock_count == 0 && unscaled->face);
|
||||
return (!unscaled->from_face && unscaled->lock_count == 0 && unscaled->face);
|
||||
}
|
||||
|
||||
/* Ensures that an unscaled font has a face object. If we exceed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue