SDL_CleanupPropertyCallback - A callback used to free resources when a property is deleted.
Contents
Availability
This datatype is available since SDL 3.2.0.
Description
This should release any resources associated with value that are no longer needed.
This callback is set per-property. Different properties in the same group can have different cleanup
callbacks.
This callback will be called _during_
SDL_SetPointerPropertyWithCleanup
if the function fails for any reason.
Function Parameters
userdata
an app-defined pointer passed to the callback.
value the pointer assigned to the property to clean up.
Header File
Defined in SDL3/SDL_properties.h
Name
SDL_CleanupPropertyCallback - A callback used to free resources when a property is deleted.
See Also
•(3), SDL_SetPointerPropertyWithCleanup(3) Simple Directmedia Layer SDL 3.2.10 SDL_CleanupPropertyCallback(3type)
Synopsis
#include"SDL3/SDL.h"typedefvoid(SDLCALL*SDL_CleanupPropertyCallback)(void*userdata,void*value);
Thread Safety
This callback may fire without any locks held; if this is a concern, the app should provide its own
locking.
