SDL_GetSensors() follows the SDL_GetStringRule

This commit is contained in:
Sam Lantinga
2024-07-18 22:10:29 -07:00
parent 4f8c348402
commit 856d598d6e
6 changed files with 10 additions and 15 deletions

View File

@@ -58,7 +58,7 @@ static void HandleSensorEvent(SDL_SensorEvent *event)
int main(int argc, char **argv)
{
SDL_SensorID *sensors;
const SDL_SensorID *sensors;
int i, num_sensors, num_opened;
SDLTest_CommonState *state;
@@ -104,7 +104,6 @@ int main(int argc, char **argv)
}
}
}
SDL_free(sensors);
}
SDL_Log("Opened %d sensors\n", num_opened);