Possible Duplicate:
Is it worth setting pointers to NULL in a destructor?
I see some code like this,
void ClassA::~ClassA()
{
delete member;
member = NULL;
}
as the particular instance doesn't exist anymore after this destructor (or the instance is destructed and its members can't be used or dereferenced anymore), what is the use of assigning NULL to the pointer of member variable?
Is it just a practice taken from deleting a pointer elsewhere and assigning NULL to it?