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.
This commit is contained in:
Nicolas Dufresne 2018-03-02 15:36:06 -05:00
parent 4bc3b6e567
commit 32660fd294

View file

@ -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;
}