ApplesauceOS
Read Markdown ↗Download .md

CPointer.release

Release a pointer handle.

js
pointer.release()

Arguments

No arguments.

Returns

No return value (undefined).

Example

js
const buffer = C.alloc(4);
buffer.release();

Notes

Managed storage is freed after its last alias. Releasing an external pointer handle does not free its pointee.

All JavaScript APIs · Automation playbook