mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
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:
parent
d3eb06ab74
commit
2581575bd1
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue