same thing for the destructor. 

No need to set them to nullptr as they are being deleted here anyway.