fixup_destroy

This function is called from the debug code whenever a problem in debug_object_destroy is detected.

Called from debug_object_destroy when the object state is:

The function returns 1 when the fixup was successful, otherwise 0. The return value is used to update the statistics.