qtdemux: don't leak cover art
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 23 Jun 2009 14:35:37 +0000 (15:35 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 23 Jun 2009 14:35:37 +0000 (15:35 +0100)
gst/qtdemux/qtdemux.c

index 368f342..0b7eaf9 100644 (file)
@@ -4821,6 +4821,7 @@ qtdemux_tag_add_covr (GstQTDemux * qtdemux, const char *tag1, const char *dummy,
         GST_DEBUG_OBJECT (qtdemux, "adding tag size %d", len - 16);
         gst_tag_list_add (qtdemux->tag_list, GST_TAG_MERGE_REPLACE,
             tag1, buf, NULL);
+        gst_buffer_unref (buf);
       }
     }
   }