rtpg729pay: Fix adapter leak
The adapter would be leaked if it was empty and the data could be pushed out directly.
This commit is contained in:
parent
317d6e18a2
commit
750387f520
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user