diff options
Diffstat (limited to 'src/base/ftglyph.c')
-rw-r--r-- | src/base/ftglyph.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c index 571dca1a9..5873438cd 100644 --- a/src/base/ftglyph.c +++ b/src/base/ftglyph.c @@ -682,7 +682,10 @@ Exit2: /* if an error occurred, destroy the glyph */ if ( error ) + { FT_Done_Glyph( glyph ); + *aglyph = NULL; + } else *aglyph = glyph; |