Commit 7e52276a authored by Philippe Kalaf's avatar Philippe Kalaf
Browse files

gst-libs/gst/rtp/gstbasertpaudiopayload.c: Fixed nasty memory leak

Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
Fixed nasty memory leak
parent 2d27a423
2006-06-29 Philippe Kalaf <philippe.kalaf@collabora.co.uk>
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
Fixed nasty memory leak
2006-06-26 Thomas Vander Stichele <thomas at apestaart dot org> 2006-06-26 Thomas Vander Stichele <thomas at apestaart dot org>
   
* gst/tcp/gsttcp.c: (gst_tcp_read_buffer), * gst/tcp/gsttcp.c: (gst_tcp_read_buffer),
......
...@@ -285,6 +285,8 @@ gst_basertpaudiopayload_handle_frame_based_buffer (GstBaseRTPPayload * ...@@ -285,6 +285,8 @@ gst_basertpaudiopayload_handle_frame_based_buffer (GstBaseRTPPayload *
data += payload_len; data += payload_len;
} }
gst_buffer_unref (buffer);
/* none should be available by now */ /* none should be available by now */
if (available != 0) { if (available != 0) {
GST_ERROR_OBJECT (basertpaudiopayload, "The buffer size is not a multiple" GST_ERROR_OBJECT (basertpaudiopayload, "The buffer size is not a multiple"
...@@ -378,6 +380,8 @@ gst_basertpaudiopayload_handle_sample_based_buffer (GstBaseRTPPayload * ...@@ -378,6 +380,8 @@ gst_basertpaudiopayload_handle_sample_based_buffer (GstBaseRTPPayload *
data += payload_len; data += payload_len;
} }
gst_buffer_unref (buffer);
return ret; return ret;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment