struct simple_track *simple_track_new(struct track_info *ti) { struct simple_track *t = xnew(struct simple_track, 1); track_info_ref(ti); simple_track_init(t, ti); return t; }
static void views_add_track(struct track_info *ti) { struct tree_track *track = xnew(struct tree_track, 1); /* NOTE: does not ref ti */ simple_track_init((struct simple_track *)track, ti); /* both the hash table and views have refs */ track_info_ref(ti); tree_add_track(track); shuffle_add(track); editable_add(&lib_editable, (struct simple_track *)track); }