objects.c: Automatically detach from the parent.