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

@ -392,7 +392,7 @@ static int dollarNormalize(const SDL_DollarPath *path,SDL_FloatPoint *points)
static float dollarRecognize(const SDL_DollarPath *path,int *bestTempl,SDL_GestureTouch* touch)
{
SDL_FloatPoint points[DOLLARNPOINTS];
SDL_FloatPoint points[DOLLARNPOINTS] = {};
int i;
float bestDiff = 10000;