diff options
author | Karl Tomlinson <karlt+@karlt.net> | 2008-12-17 16:40:12 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-12-17 16:42:20 -0500 |
commit | 0137b9bd320783264d865a397392b0ee14fd69b3 (patch) | |
tree | 1793d2bf75b307a4cbd8ee1af4ebfca0cf58210a /src | |
parent | 9485cd947f982ecd1e4f8d948786af3265d6eb74 (diff) |
[ft] Don't call FT_Done_Face() on faces we did not create
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-ft-font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index cd112532..3675db68 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 |