=proto void duk_destroy_heap(duk_context *ctx); =summary
Destroy a Duktape heap. The argument context can be any context linked to the heap. All resources related to the heap are freed and must not be referenced after the call completes. These resources include all contexts linked to the heap, and also all string and buffer pointers within the heap.
If ctx is NULL, the call is a no-op.
=example duk_destroy_heap(ctx); =tags heap