Skip to content

TSdlPropertyCleanupCallback

A callback used to free resources when a property is deleted.

This should release any resources associated with AValue 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 TSdlProperties.SetPointerWithCleanup if the function fails for any reason.

Definition

Unit: Neslib.Sdl3.Basics

type TSdlPropertyCleanupCallback = procedure(const AValue: Pointer) of object

Parameters

AValue: Pointer : The pointer assigned to the property to clean up.

See Also

Remarks

This callback may fire without any locks held; if this is a concern, the app should provide its own locking.