Remove the source files which got transferred to libpbd
[ardour.git] / libs / ardour / audio_library.cc
index 4a6089dac3668ba6273a7d1c10b6122c4b51a9e6..35c0972847c16d20d0ca19c4d339b0f15d12ff01 100644 (file)
@@ -105,15 +105,15 @@ AudioLibrary::get_tags (string member)
 {
        vector<string> tags;
 #ifdef HAVE_LRDF
+       char * uri = strdup(Glib::filename_to_uri(member).c_str());
 
        lrdf_statement pattern;
-       pattern.subject = strdup(Glib::filename_to_uri(member).c_str());
+       pattern.subject = uri;
        pattern.predicate = const_cast<char*>(TAG);
        pattern.object = 0;
        pattern.object_type = lrdf_literal;
 
        lrdf_statement* matches = lrdf_matches (&pattern);
-       free (pattern.subject);
 
        lrdf_statement* current = matches;
        while (current != 0) {
@@ -125,6 +125,7 @@ AudioLibrary::get_tags (string member)
        lrdf_free_statements (matches);
 
        sort (tags.begin(), tags.end());
+       free (uri);
 #endif
        return tags;
 }