Removed unnecessary NULL check.

This commit is contained in:
Philipp Wiesemann 2014-10-29 22:41:01 +01:00
parent 2bdc5c9d7a
commit 0c60f023f5
1 changed files with 1 additions and 5 deletions

View File

@ -154,11 +154,7 @@ SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *userdata)
hint = (SDL_Hint *)SDL_malloc(sizeof(*hint)); hint = (SDL_Hint *)SDL_malloc(sizeof(*hint));
if (!hint) { if (!hint) {
SDL_OutOfMemory(); SDL_OutOfMemory();
if(entry)
{
SDL_free(entry); SDL_free(entry);
entry = NULL;
}
return; return;
} }
hint->name = SDL_strdup(name); hint->name = SDL_strdup(name);