gstrtpdepay: don't leak input buffer
authorRasmus Rohde <rohde@duff.dk>
Thu, 4 Oct 2012 18:32:45 +0000 (20:32 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 4 Oct 2012 18:44:28 +0000 (19:44 +0100)
The rtp buffer is never unmapped in the normal code exit path
of gst_rtp_gst_depay_process(..) resulting in a memory leak.

https://bugzilla.gnome.org/show_bug.cgi?id=685512

gst/rtp/gstrtpgstdepay.c

index af364c6..8c211b6 100644 (file)
@@ -291,6 +291,7 @@ gst_rtp_gst_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
         GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT);
     }
   }
+  gst_rtp_buffer_unmap (&rtp);
   return outbuf;
 
   /* ERRORS */