Fix some memory leaks; stuff should begin its life as null always be deleted, and end its life as null.  Also zap unused pointer.