Fixed write after delete in Release()