Skip to content
Lamina PDF

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