From 5a21d05ad34f06b4aa9c0fbbb11388ddcf96a725 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Thu, 21 Apr 2022 00:38:37 +0900 Subject: [PATCH] webrtcbin: Avoid access of freed memory Change-Id: I3489f2f718bdcd298ffc90c62a7352544293a70c Part-of: --- subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c b/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c index 6013788..45bce86 100644 --- a/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c +++ b/subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c @@ -1874,9 +1874,6 @@ _find_codec_preferences (GstWebRTCBin * webrtc, caps = _query_pad_caps (webrtc, rtp_trans, pad, filter, error); } -#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION - gst_object_unref (pad); -#endif if (*error) goto out; @@ -1932,10 +1929,8 @@ _find_codec_preferences (GstWebRTCBin * webrtc, out: -#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION if (pad) gst_object_unref (pad); -#endif if (codec_preferences) gst_caps_unref (codec_preferences); -- 2.7.4