Deleting a pointer at that time is not a smart thing to do.