Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
parent
edc88be724
commit
08dfaaa2e6
63 changed files with 157 additions and 349 deletions
|
@ -1388,9 +1388,7 @@ SDLTest_CommonQuit(SDLTest_CommonState * state)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (state->windows) {
|
||||
SDL_free(state->windows);
|
||||
}
|
||||
SDL_free(state->windows);
|
||||
if (state->renderers) {
|
||||
for (i = 0; i < state->num_windows; ++i) {
|
||||
if (state->renderers[i]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue