From 0c60f023f549d718f552d1fa3535425943ce97a2 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 29 Oct 2014 22:41:01 +0100 Subject: [PATCH] Removed unnecessary NULL check. --- src/SDL_hints.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/SDL_hints.c b/src/SDL_hints.c index 520e4eaa950be..ec5ed5b8173ff 100644 --- a/src/SDL_hints.c +++ b/src/SDL_hints.c @@ -154,11 +154,7 @@ SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *userdata) hint = (SDL_Hint *)SDL_malloc(sizeof(*hint)); if (!hint) { SDL_OutOfMemory(); - if(entry) - { - SDL_free(entry); - entry = NULL; - } + SDL_free(entry); return; } hint->name = SDL_strdup(name);