Browse Source

Removed unnecessary call to free() in testoverlay2 program.

Philipp Wiesemann 8 năm trước cách đây
mục cha
commit
088f57a62a
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      test/testoverlay2.c

+ 0 - 1
test/testoverlay2.c

@@ -403,7 +403,6 @@ main(int argc, char **argv)
     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);
     }