Set pointers to null in case the destructor tries to delete them
Merge pull request #1 from mark-grimes/fixMemoryErrorIn6811

Set pointers to null in case the destructor tries to delete them