Delete object before erasing iterator