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 <sc11.lee@samsung.com>
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
__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);
}