src/SDL_hints.c
changeset 7719 31b5f9ff36ca
parent 7716 be4cda94bce2
child 8093 b43765095a6f
--- a/src/SDL_hints.c	Thu Aug 29 08:27:25 2013 -0700
+++ b/src/SDL_hints.c	Thu Aug 29 08:29:21 2013 -0700
@@ -72,9 +72,7 @@
                     entry->callback(entry->userdata, name, hint->value, value);
                     entry = next;
                 }
-                if (hint->value) {
-                    SDL_free(hint->value);
-                }
+                SDL_free(hint->value);
                 hint->value = value ? SDL_strdup(value) : NULL;
             }
             hint->priority = priority;
@@ -206,9 +204,7 @@
         SDL_hints = hint->next;
 
         SDL_free(hint->name);
-        if (hint->value) {
-            SDL_free(hint->value);
-        }
+        SDL_free(hint->value);
         for (entry = hint->callbacks; entry; ) {
             SDL_HintWatch *freeable = entry;
             entry = entry->next;