mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
Ensure that all functions that follow the SDL_GetStringRule return temporary memory
This commit is contained in:
@@ -723,8 +723,6 @@ typedef struct SDL_PixelFormatDetails
|
||||
/**
|
||||
* Get the human readable name of a pixel format.
|
||||
*
|
||||
* The returned string follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
*
|
||||
* \param format the pixel format to query.
|
||||
* \returns the human readable name of the specified pixel format or
|
||||
* "SDL_PIXELFORMAT_UNKNOWN" if the format isn't recognized.
|
||||
|
@@ -48,8 +48,6 @@ extern "C" {
|
||||
* - "iOS"
|
||||
* - "Android"
|
||||
*
|
||||
* The returned string follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
*
|
||||
* \returns the name of the platform. If the correct platform name is not
|
||||
* available, returns a string beginning with the text "Unknown".
|
||||
*
|
||||
|
@@ -163,8 +163,6 @@ extern SDL_DECLSPEC int SDLCALL SDL_GetVersion(void);
|
||||
* You shouldn't use this function for anything but logging it for debugging
|
||||
* purposes. The string is not intended to be reliable in any way.
|
||||
*
|
||||
* The returned string follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
*
|
||||
* \returns an arbitrary string, uniquely identifying the exact revision of
|
||||
* the SDL library in use.
|
||||
*
|
||||
|
Reference in New Issue
Block a user