benilla-re systems structs docs

LightningObject::Release

function · spell · primitive

Address
0x6ed030 · 30 bytes, up to 0x6ed04d
Signature
void __thiscall (LightningObject *this)
Meaning
Decrements the reference count and at zero destroys and frees the chain
Confidence
verified, proof one
Finding
spell/visuals#chain-lifetime

Finding: Chain lifetime in spell: visuals

A LightningObject starts with one reference, the list's; a persistent one gains a second for its owner. The update's zero unlinks it and drops the list's. The owner's teardown calls 0x6ece10 on each of its three slots and clears them: the chain becomes non-persistent with its end set to now, and drops the owner's reference. At zero references 0x6ecf40 destroys every bolt, frees both arrays, closes the texture and unlinks, and the memory is freed.

The derivation is in the doc.

Callers 2

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.