mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-02 07:27:19 +08:00
Clarified that temporary memory shouldn't be kept beyond the current function scope or event handling.
This commit is contained in:
@@ -1435,7 +1435,7 @@ extern SDL_DECLSPEC void * SDLCALL SDL_AllocateTemporaryMemory(size_t size);
|
|||||||
* Claim ownership of temporary memory.
|
* Claim ownership of temporary memory.
|
||||||
*
|
*
|
||||||
* Some functions return temporary memory which SDL will automatically clean
|
* Some functions return temporary memory which SDL will automatically clean
|
||||||
* up. If you want to hold onto it for a long time or beyond the current
|
* up. If you want to hold onto it past the current event being handled or beyond the current
|
||||||
* function scope, you can call this function to get a pointer that you own,
|
* function scope, you can call this function to get a pointer that you own,
|
||||||
* and can free using SDL_free() when you're done.
|
* and can free using SDL_free() when you're done.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user