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
This commit is contained in:
Philippe Kalaf 2006-06-29 12:21:06 +00:00
parent 2d27a4238e
commit 7e52276a83
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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>
* gst/tcp/gsttcp.c: (gst_tcp_read_buffer),

View file

@ -285,6 +285,8 @@ gst_basertpaudiopayload_handle_frame_based_buffer (GstBaseRTPPayload *
data += payload_len;
}
gst_buffer_unref (buffer);
/* none should be available by now */
if (available != 0) {
GST_ERROR_OBJECT (basertpaudiopayload, "The buffer size is not a multiple"
@ -378,6 +380,8 @@ gst_basertpaudiopayload_handle_sample_based_buffer (GstBaseRTPPayload *
data += payload_len;
}
gst_buffer_unref (buffer);
return ret;
}