[Commits] SDL: Removed unnecessary call to free() in testoverlay2 program.

libsdl.org revision control commits-owner at libsdl.org
Sat May 20 14:34:14 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/7860594a8ad7
changeset: 11021:7860594a8ad7
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Sat May 20 23:30:47 2017 +0200
description:
Removed unnecessary call to free() in testoverlay2 program.

diffstat:

 test/testoverlay2.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 3b993dbe4cf9 -r 7860594a8ad7 test/testoverlay2.c
--- a/test/testoverlay2.c	Sat May 20 23:30:32 2017 +0200
+++ b/test/testoverlay2.c	Sat May 20 23:30:47 2017 +0200
@@ -403,7 +403,6 @@
     RawMooseData = (Uint8 *) malloc(MOOSEFRAME_SIZE * MOOSEFRAMES_COUNT);
     if (RawMooseData == NULL) {
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Can't allocate memory for movie !\n");
-        free(RawMooseData);
         quit(1);
     }
 


More information about the commits mailing list