mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-03 15:48:20 +00:00
Add POINTER suffix to SDL_PROP_IOSTREAM_MEMORY_FREE_FUNC
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user