LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
//! Give memory the system allocator keeps after frees back to the system
//! ([`lightcraft_engine::memory::set_release_hook`]). The platform call lives in
//! `lightcraft-sysmem`, the workspace's only crate allowed `unsafe`.
/// Install the hook.
pub fn install() {
lightcraft_engine::memory::set_release_hook(release);
}
fn release() {
let _ = lightcraft_sysmem::release_free_memory();
}