Set pointer to NULL after deletion.
Passing param by const reference instead of copy