summaryrefslogtreecommitdiff
path: root/src/cairo-ft-font.c
diff options
context:
space:
mode:
authorKarl Tomlinson <karlt+@karlt.net>2008-12-17 16:40:12 -0500
committerBehdad Esfahbod <behdad@behdad.org>2008-12-17 16:42:20 -0500
commit0137b9bd320783264d865a397392b0ee14fd69b3 (patch)
tree1793d2bf75b307a4cbd8ee1af4ebfca0cf58210a /src/cairo-ft-font.c
parent9485cd947f982ecd1e4f8d948786af3265d6eb74 (diff)
[ft] Don't call FT_Done_Face() on faces we did not create
Diffstat (limited to 'src/cairo-ft-font.c')
-rw-r--r--src/cairo-ft-font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index cd1125325..3675db681 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -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