gst-libs/gst/rtp/gstbasertpaudiopayload.c: Fixed nasty memory leak
authorPhilippe Kalaf <philippe.kalaf@collabora.co.uk>
Thu, 29 Jun 2006 12:21:06 +0000 (12:21 +0000)
committerPhilippe Kalaf <philippe.kalaf@collabora.co.uk>
Thu, 29 Jun 2006 12:21:06 +0000 (12:21 +0000)
Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
Fixed nasty memory leak

ChangeLog
gst-libs/gst/rtp/gstbasertpaudiopayload.c

index f06dd82..038ace4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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),
index 9410e0d..696bf93 100644 (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;
 }