Skip to content

Commit

Permalink
testcamera: SDL_AppQuit destroys state and SDL
Browse files Browse the repository at this point in the history
This fixes a double-free of SDLTest_CommonState
  • Loading branch information
madebr authored and slouken committed Feb 22, 2025
1 parent 03e00cd commit 5c214e5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/testcamera.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c214e5

Please sign in to comment.