matroskademux: fix leaking buffer and caps
authorMatej Knopp <matej.knopp@gmail.com>
Sat, 7 Sep 2013 14:37:03 +0000 (16:37 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 7 Sep 2013 14:50:36 +0000 (15:50 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=707688

gst/matroska/matroska-read-common.c

index ffef578..bfbe02a 100644 (file)
@@ -658,6 +658,9 @@ gst_matroska_read_common_parse_attached_file (GstMatroskaReadCommon * common,
 
     tagsample = gst_sample_new (tagbuffer, caps, NULL, info);
 
+    gst_buffer_unref (tagbuffer);
+    gst_caps_unref (caps);
+
     GST_DEBUG_OBJECT (common,
         "Created attachment sample: %" GST_PTR_FORMAT, tagsample);