fixed an obvious memory bug

nodes now have *weak pointers to link objects, to avoid retain cycles