Christoph Mallon: Remove pointless if (x) before SDL_FreeSurface(x)
This commit is contained in:
1 parent
f79fc33a39
commit
3e2930defe
9 files changed
+51
-123
No files matched your search
+1
-2
@@ -90,8 +90,7 @@ int main(int argc,char** argv)
|
||||
if(pictures[i].surface == NULL) {
|
||||
j = 0;
|
||||
for(j=0;j<num_pictures;j++)
|
||||
if(pictures[j].surface != NULL)
|
||||
SDL_FreeSurface(pictures[j].surface);
|
||||
SDL_FreeSurface(pictures[j].surface);
|
||||
SDL_free(pictures);
|
||||
SDL_VideoQuit();
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Could not load surface from named bitmap file.");
|
||||
|
||||
Reference in new issue
Block a user