Removed unnecessary NULL check.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 29 Oct 2014 22:41:01 +0100
changeset 9204 b331795924d3
parent 9203 874b59c43a3f
child 9205 5302aee2916a
Removed unnecessary NULL check.
src/SDL_hints.c
--- a/src/SDL_hints.c	Wed Oct 29 20:35:21 2014 +0100
+++ b/src/SDL_hints.c	Wed Oct 29 22:41:01 2014 +0100
@@ -154,11 +154,7 @@
         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);