Function AgentManagedStorage.Free

Free (int slot, Entity expectedOwner)

Releases a slot and disposes the data in it.

Internal Static
void Free (

int

slot

Entity

expectedOwner

)

Releases a slot and disposes the data in it.

Passing the expected owner makes this a no-op when the slot has already been recycled to a different agent, so a stale slot reference cannot free live data.