From 967280df42b536381f7715640d7ca852783de80d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 4 Dec 2013 21:54:16 +0100 Subject: [PATCH] rtpvorbispay: Don't leak config data when receiving a second CAPS event --- gst/rtp/gstrtpvorbispay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/rtp/gstrtpvorbispay.c b/gst/rtp/gstrtpvorbispay.c index 7272e12..93190b4 100644 --- a/gst/rtp/gstrtpvorbispay.c +++ b/gst/rtp/gstrtpvorbispay.c @@ -500,6 +500,8 @@ gst_rtp_vorbis_pay_finish_headers (GstRTPBasePayload * basepayload) configuration = g_base64_encode (config, configlen); /* store for later re-sending */ + if (rtpvorbispay->config_data) + g_free (rtpvorbispay->config_data); rtpvorbispay->config_size = configlen - 4 - 3 - 2; rtpvorbispay->config_data = g_malloc (rtpvorbispay->config_size); rtpvorbispay->config_extra_len = extralen; -- 2.7.4