Fix #808, When RAQM is used, and it fails or no text processed, the glyph may be leaked (#809)

master
Pierre Joye 2022-01-29 21:03:29 +07:00 committed by GitHub
parent 2f76f48837
commit 6bbeba447b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1391,6 +1391,9 @@ BGD_DECLARE(char *) gdImageStringFTEx (gdImagePtr im, int *brect, int fg, const
gdFree (tmpstr);
gdCacheDelete (tc_cache);
gdMutexUnlock (gdFontCacheMutex);
if (info) {
gdFree(info);
}
return "Problem doing text layout";
}