Ensure that all functions that follow the SDL_GetStringRule return temporary memory

This commit is contained in:
Sam Lantinga 2024-07-19 09:50:54 -07:00
parent fd9fe1bb7b
commit 68322ac851
12 changed files with 15 additions and 36 deletions

View file

@ -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.