From f07d61a9ef9c985c5017a2b580db6327b172de57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 7 Jul 2015 15:48:40 +0100 Subject: [PATCH] rtpg729pay: fix buffer leak The handle_buffer vfunc takes ownership of the input buffer. Fixes elements/rtp-payloading under valgrind. --- gst/rtp/gstrtpg729pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtp/gstrtpg729pay.c b/gst/rtp/gstrtpg729pay.c index 1fbab66..1c695bd 100644 --- a/gst/rtp/gstrtpg729pay.c +++ b/gst/rtp/gstrtpg729pay.c @@ -328,7 +328,7 @@ gst_rtp_g729_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buf) rtpg729pay->next_ts = timestamp; if (available == 0 && size >= min_payload_len && size <= max_payload_len) { - ret = gst_rtp_g729_pay_push (rtpg729pay, gst_buffer_ref (buf)); + ret = gst_rtp_g729_pay_push (rtpg729pay, buf); return ret; } -- 2.7.4