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
|
@ -1076,7 +1076,7 @@ SDL_FreeSurface(SDL_Surface * surface)
|
|||
SDL_FreeBlitMap(surface->map);
|
||||
surface->map = NULL;
|
||||
}
|
||||
if (surface->pixels && ((surface->flags & SDL_PREALLOC) != SDL_PREALLOC)) {
|
||||
if (!(surface->flags & SDL_PREALLOC)) {
|
||||
SDL_free(surface->pixels);
|
||||
}
|
||||
SDL_free(surface);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue