free

fun free(hookList: HookList, hook: Hook)

Calls the #GHookList @finalize_hook function if it exists, and frees the memory allocated for the #GHook.

Parameters

hookList

a #GHookList

hook

the #GHook to free