rtp: fix mem leak 49/134349/1
authorEunhae Choi <eunhae1.choi@samsung.com>
Fri, 16 Jun 2017 05:50:40 +0000 (14:50 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Fri, 16 Jun 2017 05:50:40 +0000 (14:50 +0900)
Change-Id: I26e98cdfac70d0adde686bf399620d82d9106269

gst/rtp/gstrtpsbcdepay.c

index 4863fc8247686393f5d456f6b48bac641c051469..fa290e107770684c185bad22dd1a6ba03e1bcbc9 100644 (file)
@@ -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;