use correct object handler to free the object