Christoph Mallon: Remove pointless if (x) before SDL_FreeSurface(x)

This commit is contained in:
Sam Lantinga 2013-08-29 08:29:51 -07:00
parent 08dfaaa2e6
commit 62d7359fd5
9 changed files with 51 additions and 123 deletions

View file

@ -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;
}