Fixed memory leak(s) in tracker listing

And rewrote the whole thing for good measure.