Call s_delete_object only with non-NULL arguments.