From 750387f5204f5997d0ab1245600708725fe8815f Mon Sep 17 00:00:00 2001 From: Olivier CrĂȘte Date: Tue, 15 Sep 2009 17:24:24 -0400 Subject: rtpg729pay: Fix adapter leak The adapter would be leaked if it was empty and the data could be pushed out directly. --- gst/rtp/gstrtpg729pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/rtp') diff --git a/gst/rtp/gstrtpg729pay.c b/gst/rtp/gstrtpg729pay.c index 0610bcdb..8fd01796 100644 --- a/gst/rtp/gstrtpg729pay.c +++ b/gst/rtp/gstrtpg729pay.c @@ -228,7 +228,7 @@ gst_rtp_g729_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buf) GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf), GST_BUFFER_TIMESTAMP (buf)); gst_buffer_unref (buf); - + g_object_unref (adapter); return ret; } -- cgit