Fix from Alfred Perlstein

This commit is contained in:
Sam Lantinga 2004-11-12 21:24:46 +00:00
parent 7f6b90a196
commit e360be74cf

View File

@ -160,6 +160,7 @@ SDL_SYS_JoystickInit(void)
SDL_numjoysticks++;
} else {
free(joynames[nj.index]);
joynames[nj.index] = NULL;
}
}
for (i = 0; i < MAX_JOY_JOYS; i++) {