Skip to content

Commit

Permalink
Removed unnecessary NULL check.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Oct 29, 2014
1 parent 2bdc5c9 commit 0c60f02
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/SDL_hints.c
Expand Up @@ -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);
Expand Down

0 comments on commit 0c60f02

Please sign in to comment.