From: Sangchul Lee Date: Thu, 10 Oct 2024 03:22:04 +0000 (+0900) Subject: webrtc_source_simulcast: Add missing gst_object_unref() X-Git-Tag: accepted/tizen/unified/20241017.114714~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5658175238fdfcb6858fc4ecce6daac2c05e26c3;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_source_simulcast: Add missing gst_object_unref() It should be done because of the increased ref. count by calling gst_element_get_parent(). [Version] 1.1.34 [Issue Type] Improvement Change-Id: Ic75792686402c547818f34a97bd36e767a0b025f Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index 88c142c8..4df01485 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 1.1.33 +Version: 1.1.34 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_source_simulcast.c b/src/webrtc_source_simulcast.c index cf690dbb..16354d17 100644 --- a/src/webrtc_source_simulcast.c +++ b/src/webrtc_source_simulcast.c @@ -316,8 +316,10 @@ void _encoding_slot_destroy_cb(gpointer data) __remove_probe_from_pad_for_active(encoding); - if ((parent = GST_ELEMENT(gst_element_get_parent(encoding->bin)))) + if ((parent = GST_ELEMENT(gst_element_get_parent(encoding->bin)))) { gst_bin_remove(GST_BIN(parent), GST_ELEMENT(encoding->bin)); + gst_object_unref(parent); + } g_free(encoding); }