Fix from Alfred Perlstein
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40966
This commit is contained in:
parent
8a8ea6302a
commit
4cf94e336e
1 changed files with 1 additions and 0 deletions
|
@ -160,6 +160,7 @@ SDL_SYS_JoystickInit(void)
|
||||||
SDL_numjoysticks++;
|
SDL_numjoysticks++;
|
||||||
} else {
|
} else {
|
||||||
free(joynames[nj.index]);
|
free(joynames[nj.index]);
|
||||||
|
joynames[nj.index] = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (i = 0; i < MAX_JOY_JOYS; i++) {
|
for (i = 0; i < MAX_JOY_JOYS; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue