gdImageStringFT && gdFontCacheShutdown()

Issue #88 new
Former user created an issue

once gdImageStringFT( and other likely methods) is called, gdFontCacheShutdown() must be invoked before program finish, otherwise it will causes memory leak. it's better shown in libgd-2.x.x\tests\gdimagestringft\gdimagestringft_bbox.c

there is a bug in gd_tiff.c Line 516 for (mask = 0x80; mask != 0 && x < startx + width; mask >>= 1) { shoud be for (mask = 0x80; mask != 0 && x < startx + width; x++, mask >>= 1) {

Comments (1)

  1. Tony Lew

    gd_tiff.c Line 509 should be for (x = startx; x < startx + width; ) {//

    Line 516 should be for (mask = 0x80; mask != 0 && x < startx + width; x++, mask >>= 1) {

  2. Log in to comment