Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
parent
1d2c7796ae
commit
f79fc33a39
63 changed files with 157 additions and 349 deletions
|
@ -42,15 +42,9 @@ static int iterations = -1;
|
|||
static void
|
||||
quit(int rc)
|
||||
{
|
||||
if (sprites) {
|
||||
SDL_free(sprites);
|
||||
}
|
||||
if (positions) {
|
||||
SDL_free(positions);
|
||||
}
|
||||
if (velocities) {
|
||||
SDL_free(velocities);
|
||||
}
|
||||
SDL_free(sprites);
|
||||
SDL_free(positions);
|
||||
SDL_free(velocities);
|
||||
SDLTest_CommonQuit(state);
|
||||
exit(rc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue