From a5ceab82dd8658bf2e81aff95891962340eef6be Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Sat, 7 Sep 2013 16:37:03 +0200 Subject: [PATCH] matroskademux: fix leaking buffer and caps https://bugzilla.gnome.org/show_bug.cgi?id=707688 --- gst/matroska/matroska-read-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/matroska/matroska-read-common.c b/gst/matroska/matroska-read-common.c index ffef578..bfbe02a 100644 --- a/gst/matroska/matroska-read-common.c +++ b/gst/matroska/matroska-read-common.c @@ -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); -- 2.7.4