rtpg729pay: Fix adapter leak
authorOlivier Crête <olivier.crete@collabora.co.uk>
Tue, 15 Sep 2009 21:24:24 +0000 (17:24 -0400)
committerOlivier Crête <olivier.crete@collabora.co.uk>
Tue, 15 Sep 2009 21:24:24 +0000 (17:24 -0400)
The adapter would be leaked if it was empty and the data could be pushed out directly.

gst/rtp/gstrtpg729pay.c

index 0610bcd..8fd0179 100644 (file)
@@ -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;
     }