Set pointer to NULL after delete.