Releases a reference on the data pointed by mem_block.
If the reference was the last one, it will call clear_func to clear the contents of mem_block, and then will free the resources allocated for mem_block.
a pointer to reference counted data
a function to call when clearing the data
Releases a reference on the data pointed by mem_block.
If the reference was the last one, it will call clear_func to clear the contents of mem_block, and then will free the resources allocated for mem_block.