Skip to content

Commit

Permalink
Fix #808, When RAQM is used, and it fails or no text processed, the g…
Browse files Browse the repository at this point in the history
…lyph may be leaked (#809)
  • Loading branch information
pierrejoye committed Jan 29, 2022
1 parent e9a36f8 commit 413fbfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gdft.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 413fbfb

Please sign in to comment.