projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86b781f
)
rtp: opuspay: fix memory leak in gst_rtp_opus_pay_setcaps.
author
Knut Andre Tidemann
<knutandre.tidemann@zenitel.com>
Mon, 22 Jul 2019 08:28:50 +0000
(10:28 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 8 Aug 2019 11:04:47 +0000
(12:04 +0100)
The src caps were never dereferenced, causing a memory leak.
gst/rtp/gstrtpopuspay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpopuspay.c
b/gst/rtp/gstrtpopuspay.c
index
f353800
..
ba54134
100644
(file)
--- a/
gst/rtp/gstrtpopuspay.c
+++ b/
gst/rtp/gstrtpopuspay.c
@@
-125,6
+125,7
@@
gst_rtp_opus_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
if (!gst_value_can_intersect (&default_value, value))
encoding_name = "X-GST-OPUS-DRAFT-SPITTKA-00";
}
+ gst_caps_unref (src_caps);
}
s = gst_caps_get_structure (caps, 0);