Explorar o código

testcamera: SDL_AppQuit destroys state and SDL

This fixes a double-free of SDLTest_CommonState
Anonymous Maarten hai 1 mes
pai
achega
5c214e5e9c
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      test/testcamera.c

+ 0 - 2
test/testcamera.c

@@ -97,8 +97,6 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
                 NULL,
             };
             SDLTest_CommonLogUsage(state, argv[0], options);
-            SDL_Quit();
-            SDLTest_CommonDestroyState(state);
             return SDL_APP_FAILURE;
         }
         i += consumed;