[sound-juicer/pwood/wip/fuzzy-toc-matching: 5/5] fixup! MusicBrainz: Use Fuzzy TOC matching



commit 2961d541c6c7e8568979e8b5693b563cfde56622
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Mon Oct 2 14:28:31 2017 +0100

    fixup! MusicBrainz: Use Fuzzy TOC matching

 libjuicer/sj-metadata-musicbrainz5.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libjuicer/sj-metadata-musicbrainz5.c b/libjuicer/sj-metadata-musicbrainz5.c
index d8240d39..0d2b1851 100644
--- a/libjuicer/sj-metadata-musicbrainz5.c
+++ b/libjuicer/sj-metadata-musicbrainz5.c
@@ -1436,6 +1436,7 @@ get_matching_media (DiscDetails *disc,
        */
       if (best_sum != 0) {
         best_sum = 0;
+        g_slist_free (matches);
         matches = NULL;
       }
       g_info ("Discid collision: disc %2d", i + 1);
@@ -1459,6 +1460,7 @@ get_matching_media (DiscDetails *disc,
     }
 
     if (sum < best_sum) {
+      g_slist_free (matches);
       matches = g_slist_prepend (NULL, medium);
       best_sum = sum;
     } else if (sum == best_sum) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]