closedcaption: fix leak in line21 decoder
authorTim-Philipp Müller <tim@centricular.com>
Wed, 6 Mar 2019 18:32:38 +0000 (18:32 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 8 Mar 2019 01:18:39 +0000 (01:18 +0000)
commit6dad8b7c787c1d57e944cec681dfccf22b37fc90
tree0caf4ced25094cbf3b4dab1c82f5f63871b776ce
parent2ab238a4d06e8e20f739d770a8ad5973d00eff0a
closedcaption: fix leak in line21 decoder

Destroy old decoder instance when shutting down the
element, and also in case the input format changes.

Fix harness/pipeline leak in unit test.
ext/closedcaption/gstline21dec.c
tests/check/elements/line21.c