diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2016-08-27 16:41:29 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2016-08-27 16:41:29 +0200 |
commit | edd5cae6221539d8449297c4176582f93ce9c135 (patch) | |
tree | d732d83693b9994fc1797387c5ed7e18848a629a /tests/gdimagestringft | |
parent | 0bd7ec0560d2e751d4d46ea6bbfd92b3fb8134f4 (diff) | |
download | libgd-edd5cae6221539d8449297c4176582f93ce9c135.tar.gz |
Fix memory leaks in test cases
We must not forget to call gdFontCacheShutdown() when we have used
gdImageStringFT() and friends.
Diffstat (limited to 'tests/gdimagestringft')
-rw-r--r-- | tests/gdimagestringft/gdimagestringft_bbox.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gdimagestringft/gdimagestringft_bbox.c b/tests/gdimagestringft/gdimagestringft_bbox.c index bc2bdd0..0161ec8 100644 --- a/tests/gdimagestringft/gdimagestringft_bbox.c +++ b/tests/gdimagestringft/gdimagestringft_bbox.c @@ -73,6 +73,7 @@ int main() fclose(fp); done: gdImageDestroy(im); + gdFontCacheShutdown(); free(path); return error; } |