You are using a while(1).
It will never end and when you delete the ent via level_load there is an empty pointer.
Try while(me)