From 47a8eb7ca89cb2339f5220fb674bc3d1affeadb8 Mon Sep 17 00:00:00 2001 From: Rasmus Rohde Date: Thu, 4 Oct 2012 20:32:45 +0200 Subject: [PATCH] gstrtpdepay: don't leak input buffer 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/rtp/gstrtpgstdepay.c b/gst/rtp/gstrtpgstdepay.c index af364c606a..8c211b67f9 100644 --- a/gst/rtp/gstrtpgstdepay.c +++ b/gst/rtp/gstrtpgstdepay.c @@ -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 */