Christoph Mallon: Remove pointless if (x) before SDL_FreeSurface(x)
This commit is contained in:
parent
08dfaaa2e6
commit
62d7359fd5
9 changed files with 51 additions and 123 deletions
|
@ -571,9 +571,7 @@ SDL_CreateColorCursor(SDL_Surface *surface, int hot_x, int hot_y)
|
|||
mouse->cursors = cursor;
|
||||
}
|
||||
|
||||
if (temp) {
|
||||
SDL_FreeSurface(temp);
|
||||
}
|
||||
SDL_FreeSurface(temp);
|
||||
|
||||
return cursor;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue