vtenc: fix memory leak
authorNicola Murino <nicola.murino@gmail.com>
Wed, 27 Sep 2017 09:37:26 +0000 (11:37 +0200)
committerMatthew Waters <matthew@centricular.com>
Thu, 19 Oct 2017 14:49:22 +0000 (01:49 +1100)
commitc808b4dd115498e3b9f62b0cec32a55a8cf0f84d
treec9e0855680e087d7316f2cf770595c68aac8ba60
parentb569ae4832a4572929cd298e95e6cca6837a735e
vtenc: fix memory leak

finish encoding and clean buffers queue on flush. This avoid a memory leak
if the element shuts down before EOS

https://bugzilla.gnome.org/show_bug.cgi?id=787311
sys/applemedia/vtenc.c