libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit f41935236f1b29560167e1ac41326c8589969278
parent 988c668a43b3e05a4d555c7d97b6cf0105e3cdfc
Author: Frederic Cambus <fred@statdns.com>
Date:   Fri,  8 Feb 2019 14:08:19 +0100

Merge pull request #5 from andrewmichaelson/master

Fixed memory leak.
Diffstat:
Msrc/output.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/output.c b/src/output.c @@ -24,6 +24,7 @@ output(struct ansilove_ctx *ctx, struct ansilove_options *options, if (!options->scale_factor && !options->dos) { ctx->png.buffer = gdImagePngPtr(im_Source, &ctx->png.length); + gdImageDestroy(im_Source); } else if (options->dos) { gdImagePtr im_DOS;