xvimagesink: Fix crash in pool on error

The set_config() virtual function is not support to free the config. As a side
effect, when there is protocol error of some sort, we endup with a crash.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7285>
This commit is contained in:
Nicolas Dufresne 2024-07-30 16:18:56 -04:00 committed by GStreamer Marge Bot
parent 5df658cfdd
commit ab70aa60e2

View file

@ -138,7 +138,6 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
if (!xvpool->pre_alloc_mem) {
GST_ERROR_OBJECT (pool, "couldn't allocate image");
gst_structure_free (config);
return FALSE;
} else {
gint i;