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

This should fix at least the crash reported for the 11261 test.  I don't think the crash was unique to that test, it just happened to manifest itself on that one.  I'm not sure about the others, I'm testing at the moment.