bin: Fix use-after-free issue in gst_bin_add()
authorPhilippe Normand <philn@igalia.com>
Sat, 8 Sep 2018 12:05:13 +0000 (13:05 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 8 Sep 2018 18:15:41 +0000 (19:15 +0100)
commit616d588b52ec44ffb0c522a029ed9c99ae6f6bd0
treef3695f175d25070a026745ec599a7bf020824dba
parentcbd02b95840f81152796d24ed4a619e115aa0797
bin: Fix use-after-free issue in gst_bin_add()

gst_element_post_message() takes ownership of the message so we need to increase
its refcount until we no longer require access to its data (context_type).

https://bugzilla.gnome.org/show_bug.cgi?id=797099
gst/gstbin.c