src/joystick/linux/SDL_sysjoystick.c
branchSDL-1.2
changeset 4226 dbdf8b108e31
parent 4181 cc865a058a0c
child 4261 0530394b5830
equal deleted inserted replaced
4225:6c1d2039b6b4 4226:dbdf8b108e31
  1189 {
  1189 {
  1190 	int i;
  1190 	int i;
  1191 
  1191 
  1192 	for ( i=0; SDL_joylist[i].fname; ++i ) {
  1192 	for ( i=0; SDL_joylist[i].fname; ++i ) {
  1193 		SDL_free(SDL_joylist[i].fname);
  1193 		SDL_free(SDL_joylist[i].fname);
  1194 	}
  1194 		SDL_joylist[i].fname = NULL;
  1195 	SDL_joylist[0].fname = NULL;
  1195 	}
  1196 }
  1196 }
  1197 
  1197 
  1198 #endif /* SDL_JOYSTICK_LINUX */
  1198 #endif /* SDL_JOYSTICK_LINUX */