gst: fix leak in sink_update_params

buffer_pool_get_config returns a copy of the config structure, but it is
never freed in this function. Add a gst_structure_free to fix the leak
This commit is contained in:
Albert Sjolund 2025-07-08 13:07:44 +02:00
parent d3eb06ab74
commit 2581575bd1

View file

@ -363,6 +363,8 @@ gst_pipewire_sink_update_params (GstPipeWireSink *sink)
pw_thread_loop_lock (sink->stream->core->loop);
pw_stream_update_params (sink->stream->pwstream, port_params, n_params);
pw_thread_loop_unlock (sink->stream->core->loop);
gst_structure_free (config);
}
static void