summaryrefslogtreecommitdiff
path: root/src/cache/ftcimage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache/ftcimage.c')
-rw-r--r--src/cache/ftcimage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cache/ftcimage.c b/src/cache/ftcimage.c
index 508ed6c15..02020bac3 100644
--- a/src/cache/ftcimage.c
+++ b/src/cache/ftcimage.c
@@ -78,6 +78,11 @@
/* we will now load the glyph image */
error = clazz->family_load_glyph( family, gindex, cache,
&inode->glyph );
+ if ( error )
+ {
+ FTC_INode_Free( inode, cache );
+ inode = NULL;
+ }
}
*pinode = inode;