mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-05 13:34: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
@@ -317,9 +317,7 @@ sdl_dir_error:
|
||||
SDL_free(sdl_dir);
|
||||
|
||||
tray_error:
|
||||
if (tray) {
|
||||
SDL_free(tray);
|
||||
}
|
||||
SDL_free(tray);
|
||||
|
||||
if (gtk) {
|
||||
SDL_Gtk_ExitContext(gtk);
|
||||
|
||||
Reference in New Issue
Block a user