mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 22:48:30 +00:00
SDL_GetSensors() follows the SDL_GetStringRule
This commit is contained in:
@@ -170,7 +170,7 @@ SDL_bool SDL_SensorsOpened(void)
|
||||
return opened;
|
||||
}
|
||||
|
||||
SDL_SensorID *SDL_GetSensors(int *count)
|
||||
const SDL_SensorID *SDL_GetSensors(int *count)
|
||||
{
|
||||
int i, num_sensors, device_index;
|
||||
int sensor_index = 0, total_sensors = 0;
|
||||
@@ -207,7 +207,7 @@ SDL_SensorID *SDL_GetSensors(int *count)
|
||||
}
|
||||
SDL_UnlockSensors();
|
||||
|
||||
return sensors;
|
||||
return SDL_FreeLater(sensors);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user