summaryrefslogtreecommitdiffstats
path: root/gst/rtp
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-09-15 17:24:24 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-09-15 17:24:24 -0400
commit750387f5204f5997d0ab1245600708725fe8815f (patch)
tree2c6c6854a4e6dcafa95fa2d50e9949ce12171d06 /gst/rtp
parent317d6e18a2d6ee0662f59af719063a0e9801ef3c (diff)
rtpg729pay: Fix adapter leak
The adapter would be leaked if it was empty and the data could be pushed out directly.
Diffstat (limited to 'gst/rtp')
-rw-r--r--gst/rtp/gstrtpg729pay.c2
1 files changed, 1 insertions, 1 deletions
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;
}