add track quality data to tracks
fix another (very minor) memory leak