mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 22:35:41 +00:00
Don't do NULL-checks before SDL_free()
Replaces the pattern
if (ptr) {
SDL_free(ptr);
}
with
SDL_free(ptr);
This commit is contained in:
committed by
Sam Lantinga
parent
2f810e0a5f
commit
aaee09d6ed
@@ -2075,9 +2075,7 @@ static void SDLCALL SDLTest_ScreenShotClipboardCleanup(void *context)
|
||||
|
||||
SDL_Log("Cleaning up screenshot image data");
|
||||
|
||||
if (data->image) {
|
||||
SDL_free(data->image);
|
||||
}
|
||||
SDL_free(data->image);
|
||||
SDL_free(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user