mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-15 22:35:59 +00:00
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user