diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gdft.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1509,6 +1509,9 @@ BGD_DECLARE(char *) gdImageStringFTEx (gdImagePtr im, int *brect, int fg, const gdFree(text); gdCacheDelete (tc_cache); gdMutexUnlock (gdFontCacheMutex); + if (info) { + gdFree(info); + } return "Problem loading glyph"; } @@ -1524,6 +1527,9 @@ BGD_DECLARE(char *) gdImageStringFTEx (gdImagePtr im, int *brect, int fg, const gdFree(text); gdCacheDelete (tc_cache); gdMutexUnlock (gdFontCacheMutex); + if (info) { + gdFree(info); + } return "Problem rendering glyph"; } } |