You still need to set the value of the ptr to nullptr to be 100% same as before.