From: Olivier CrĂȘte Date: Wed, 16 Sep 2009 18:16:27 +0000 (-0400) Subject: rtpg729pay: Don't leak incoming buffers after subbuffering them X-Git-Tag: RELEASE-0.10.17~155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=165516f0ef12b57574e10f2e02a0430f573d1bd0;p=platform%2Fupstream%2Fgst-plugins-good.git rtpg729pay: Don't leak incoming buffers after subbuffering them --- diff --git a/gst/rtp/gstrtpg729pay.c b/gst/rtp/gstrtpg729pay.c index 003988e..733379c 100644 --- a/gst/rtp/gstrtpg729pay.c +++ b/gst/rtp/gstrtpg729pay.c @@ -275,9 +275,8 @@ gst_rtp_g729_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buf) buf2 = gst_buffer_create_sub (buf, GST_BUFFER_SIZE (buf) - available, available); gst_adapter_push (adapter, buf2); - } else { - gst_buffer_unref (buf); } + gst_buffer_unref (buf); } if (adapter) {