Skip to content
Lamina PDF
Unreleased

These docs describe changes that aren’t released yet. For the newest release, see the released docs.

onLeak

onLeak(hook?): void

Reports every document, builder and image created from now on that the garbage collector reclaims without a free() or using: a debugging aid for code that should free what it makes. Reclaimed handles are freed anyway, only later. onLeak() turns the reports off.

(leak) => void

called once per leaked handle, some time after the collection.

void