summaryrefslogtreecommitdiff
authorKarl Tomlinson <karlt+@karlt.net>2008-12-17 21:40:12 (GMT)
committer Behdad Esfahbod <behdad@behdad.org>2008-12-17 21:42:20 (GMT)
commit0137b9bd320783264d865a397392b0ee14fd69b3 (patch) (side-by-side diff)
tree1793d2bf75b307a4cbd8ee1af4ebfca0cf58210a
parent9485cd947f982ecd1e4f8d948786af3265d6eb74 (diff)
downloadcairo-0137b9bd320783264d865a397392b0ee14fd69b3.zip
cairo-0137b9bd320783264d865a397392b0ee14fd69b3.tar.gz
[ft] Don't call FT_Done_Face() on faces we did not create
Diffstat (more/less context) (ignore whitespace changes)
-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 cd11253..3675db6 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