mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
rtptheorapay: Don't leak config data when receiving a second CAPS event
This commit is contained in:
parent
0915d696c7
commit
d105de6e0f
1 changed files with 2 additions and 0 deletions
|
@ -507,6 +507,8 @@ gst_rtp_theora_pay_finish_headers (GstRTPBasePayload * basepayload)
|
||||||
configuration = g_base64_encode (config, configlen);
|
configuration = g_base64_encode (config, configlen);
|
||||||
|
|
||||||
/* store for later re-sending */
|
/* store for later re-sending */
|
||||||
|
if (rtptheorapay->config_data)
|
||||||
|
g_free (rtptheorapay->config_data);
|
||||||
rtptheorapay->config_size = configlen - 4 - 3 - 2;
|
rtptheorapay->config_size = configlen - 4 - 3 - 2;
|
||||||
rtptheorapay->config_data = g_malloc (rtptheorapay->config_size);
|
rtptheorapay->config_data = g_malloc (rtptheorapay->config_size);
|
||||||
rtptheorapay->config_extra_len = extralen;
|
rtptheorapay->config_extra_len = extralen;
|
||||||
|
|
Loading…
Reference in a new issue