From 461cdd8c266c85a008ea0a8ab934a9a2487e5567 Mon Sep 17 00:00:00 2001 From: Havard Graff Date: Thu, 3 Mar 2016 20:10:17 +0100 Subject: opusdec: plug caps leak https://bugzilla.gnome.org/show_bug.cgi?id=763059 --- ext/opus/gstopusdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 91dedb9da..7aa9838ff 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -888,7 +888,7 @@ gst_opus_dec_getcaps (GstAudioDecoder * dec, GstCaps * filter) if (filter) gst_caps_unref (filter); if (caps) { - caps = gst_caps_copy (caps); + caps = gst_caps_make_writable (caps); for (n = 0; n < gst_caps_get_size (caps); ++n) { GstStructure *s = gst_caps_get_structure (caps, n); if (gst_structure_get_int (s, "channels", &channels)) { -- cgit v1.2.1