From 075c947831d051f268e81860fb25d407bc4d7c79 Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Fri, 16 Jun 2017 14:50:40 +0900 Subject: [PATCH] rtp: fix mem leak Change-Id: I26e98cdfac70d0adde686bf399620d82d9106269 --- gst/rtp/gstrtpsbcdepay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/rtp/gstrtpsbcdepay.c b/gst/rtp/gstrtpsbcdepay.c index 4863fc8..fa290e1 100644 --- a/gst/rtp/gstrtpsbcdepay.c +++ b/gst/rtp/gstrtpsbcdepay.c @@ -181,6 +181,8 @@ gst_rtp_sbc_depay_setcaps (GstRTPBaseDepayload * base, GstCaps * caps) } gst_caps_unref (outcaps); + if (oldcaps) + gst_caps_unref (oldcaps); return TRUE; -- 2.7.4