mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-01-26 14:13:19 +00:00
gst: deviceprovider: fix memory leak in do_add_nodes
Use `g_autoptr()` to free the new_devices GList that is allocated in do_add_nodes.
This commit is contained in:
parent
ec972d4fdf
commit
12c8cdf69b
@ -289,7 +289,7 @@ compare_device_session_priority (const void *a,
|
||||
static void do_add_nodes(GstPipeWireDeviceProvider *self)
|
||||
{
|
||||
struct node_data *nd;
|
||||
GList *new_devices = NULL;
|
||||
g_autoptr (GList) new_devices = NULL;
|
||||
GList *l;
|
||||
|
||||
spa_list_for_each(nd, &self->nodes, link) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user