vorbistag: fix memory leak
authorMiguel Angel Cabrera Moya <madmac2501@gmail.com>
Sun, 28 Oct 2012 19:01:17 +0000 (20:01 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 28 Oct 2012 20:16:06 +0000 (20:16 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=687057

gst-libs/gst/tag/gstvorbistag.c

index 29e4b96..99574fb 100644 (file)
@@ -474,6 +474,7 @@ gst_tag_list_from_vorbiscomment (const guint8 * data, gsize size,
     }
     /* we'll just ignore COVERARTMIME and typefind the image data */
     if (g_ascii_strcasecmp (cur, "COVERARTMIME") == 0) {
+      g_free (cur);
       continue;
     } else if (g_ascii_strcasecmp (cur, "COVERART") == 0) {
       gst_vorbis_tag_add_coverart (list, value, value_len);