Fixed NN memory leak

the horrible memory leak and resulting crash from overzealous deleting
has been mended