From f24b58d19c5d1fc6a625550ed44293e2f9831852 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 7 Sep 2012 15:23:44 +0200 Subject: [PATCH] rtpamrdepay: unmap rtp buffer ... thereby plugging a memleak. --- gst/rtp/gstrtpamrdepay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/rtp/gstrtpamrdepay.c b/gst/rtp/gstrtpamrdepay.c index d870e92..5c7098a 100644 --- a/gst/rtp/gstrtpamrdepay.c +++ b/gst/rtp/gstrtpamrdepay.c @@ -413,6 +413,8 @@ gst_rtp_amr_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf) GST_DEBUG_OBJECT (depayload, "pushing buffer of size %" G_GSIZE_FORMAT, gst_buffer_get_size (outbuf)); } + + gst_rtp_buffer_unmap (&rtp); return outbuf; /* ERRORS */ @@ -449,6 +451,7 @@ wrong_length_2: bad_packet: { /* no fatal error */ + gst_rtp_buffer_unmap (&rtp); return NULL; } } -- 2.7.4