Remove unnecessary parentheses and an unnecessary free() of a NULL pointer.

(Thanks, Simon!)

Fixes Bugzilla #2881.
Ryan C. Gordon 2015-02-19 13:11:19 -05:00
parent 80ba854749
commit a309755961
1 changed files with 1 additions and 2 deletions

View File

@ -288,8 +288,7 @@ MaybeAddDevice(const char *path)
} }
item->fname = SDL_strdup(path); item->fname = SDL_strdup(path);
if ( (item->fname == NULL) ) { if (item->fname == NULL) {
SDL_free(item->fname);
SDL_free(item); SDL_free(item);
return -1; return -1;
} }