diff --git a/libs/ardour/audio_library.cc b/libs/ardour/audio_library.cc index 2f09a37633..4d78bdac86 100644 --- a/libs/ardour/audio_library.cc +++ b/libs/ardour/audio_library.cc @@ -158,8 +158,8 @@ AudioLibrary::search_members_and (vector& members, const vector& } lrdf_free_uris(ulist); - sort(members.begin(), members.end()); - unique(members.begin(), members.end()); + sort (members.begin(), members.end()); + members.erase (unique (members.begin(), members.end()), members.end()); } // memory clean up