From 750aef2bee0c139f191dd6558f12dddda494c234 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 25 Jul 2024 17:46:23 -0700 Subject: [PATCH] Clarified that temporary memory shouldn't be kept beyond the current function scope or event handling. --- include/SDL3/SDL_events.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_events.h b/include/SDL3/SDL_events.h index 58abf2cc87..e77db969bc 100644 --- a/include/SDL3/SDL_events.h +++ b/include/SDL3/SDL_events.h @@ -1435,7 +1435,7 @@ extern SDL_DECLSPEC void * SDLCALL SDL_AllocateTemporaryMemory(size_t size); * Claim ownership of temporary memory. * * 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, * and can free using SDL_free() when you're done. *