Add POINTER suffix to SDL_PROP_IOSTREAM_MEMORY_FREE_FUNC

This commit is contained in:
Maia
2025-07-19 16:23:57 +02:00
committed by Sam Lantinga
parent 4a30ee58ca
commit 08fd165dd2
3 changed files with 5 additions and 5 deletions

View File

@@ -781,7 +781,7 @@ static size_t SDLCALL mem_write(void *userdata, const void *ptr, size_t size, SD
static bool SDLCALL mem_close(void *userdata)
{
IOStreamMemData *iodata = (IOStreamMemData *) userdata;
SDL_free_func free_func = SDL_GetPointerProperty(iodata->props, SDL_PROP_IOSTREAM_MEMORY_FREE_FUNC, NULL);
SDL_free_func free_func = SDL_GetPointerProperty(iodata->props, SDL_PROP_IOSTREAM_MEMORY_FREE_FUNC_POINTER, NULL);
if (free_func) {
free_func(iodata->base);
}