diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-03-02 15:36:06 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-03-05 13:50:08 -0500 |
commit | 32660fd2941499e54bd177e56039b58c34a7a670 (patch) | |
tree | 5934e93483d7b75a519c9ca01b4c6f5668f1bbc4 | |
parent | 4bc3b6e5670258d9138cd7d56e1d668670fd2b92 (diff) | |
download | gst-omx-32660fd2941499e54bd177e56039b58c34a7a670.tar.gz |
omx: Free empty buffers list in use_dynamic_buffers
To indicate we are doing dynamic buffers importation, we pass
a list of NULL pointers, but we forgot to free that list.
-rw-r--r-- | omx/gstomx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c index ddb8086..1151a6c 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -1896,6 +1896,8 @@ gst_omx_port_use_dynamic_buffers (GstOMXPort * port) port->allocation = GST_OMX_BUFFER_ALLOCATION_USE_BUFFER_DYNAMIC; g_mutex_unlock (&port->comp->lock); + g_list_free (buffers); + return err; } |