Function mupdf_sys::fz_drop_link

source ·
pub unsafe extern "C" fn fz_drop_link(
    ctx: *mut fz_context,
    link: *mut fz_link
)
Expand description

Decrement the reference count for a link. When the reference count reaches zero, the link is destroyed.

When a link is freed, the reference for any linked link (next) is dropped too, thus an entire linked list of fz_link’s can be freed by just dropping the head.