ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 2c470727b8a68798be30db259101c32e28265d86
parent ca293e615d6d9916f64b6929054b4dfcad661f86
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 18 Apr 2017 11:49:55 +0200

Group calls to free together

Diffstat:
Msrc/loaders/icedraw.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/loaders/icedraw.c b/src/loaders/icedraw.c @@ -136,12 +136,10 @@ void icedraw(unsigned char *inputFileBuffer, int32_t inputFileSize, char *output position_x++; } - // free dynamically allocated memory - free(idf_buffer); - // create output file output(im_IDF, outputFile, retinaout, createRetinaRep); - // nuke garbage - free (font_data_idf); + // free memory + free(font_data_idf); + free(idf_buffer); }