Indeed, I was not sure wether it should delete it there, since the object is created from outside. But it may well take the ownership, that's probably better than having a mixed behabior.