Function imageflow::imageflow_json_response_destroy
[−]
[src]
#[no_mangle]pub unsafe extern fn imageflow_json_response_destroy(context: *mut Context,
response: *mut JsonResponse)
-> bool
Frees memory associated with the given object (and owned objects) after running any owned or attached destructors. Returns false if something went wrong during tear-down.
Returns true if the object to destroy is a null pointer, or if tear-down was successful.
Behavior is undefined if the pointer is dangling or not a valid memory reference. Although certain implementations catch some kinds of invalid pointers, a segfault is likely in future revisions).
Behavior is undefined if the context provided does not match the context with which the object was created.
Behavior is undefined if context
is a null or invalid ptr; segfault likely.