소스 검색

testcamera: SDL_AppQuit destroys state and SDL

This fixes a double-free of SDLTest_CommonState
Anonymous Maarten 1 개월 전
부모
커밋
5c214e5e9c
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  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;