[trac641] First part of tackling memory leaks
In the NSAS, store a pointer to the resolver as a "raw" pointer, not a shared pointer. The NSAS is part of the resolver, although it can call back into the resolver. If both store a shared pointer to each other we can have the case where the reference counts can never drop to zero.
Showing with 40 additions and 45 deletions