Fix some clang analyzer warnings.

This fixes some analyzer warnings and a couple of minor memory leaks.
This commit is contained in:
Jørgen P. Tjernø 2013-07-23 17:40:13 -07:00
parent b01b128353
commit e007150b45
6 changed files with 15 additions and 5 deletions

View file

@ -619,6 +619,8 @@ SDL_UpperBlitScaled(SDL_Surface * src, const SDL_Rect * srcrect,
/* If the destination rectangle is NULL, use the entire dest surface */
if (dstrect == NULL) {
fulldst.x = fulldst.y = 0;
fulldst.w = dst->w;
fulldst.h = dst->h;
dstrect = &fulldst;
}