mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-25 01:10:04 +01:00
filter-graph: clean control_port array on unload
Because we created it when we loaded the graph.
This commit is contained in:
parent
39e0ca2f46
commit
5af9020ff3
1 changed files with 2 additions and 2 deletions
|
|
@ -1643,8 +1643,6 @@ static void unsetup_graph(struct graph *graph)
|
||||||
graph->output = NULL;
|
graph->output = NULL;
|
||||||
free(graph->hndl);
|
free(graph->hndl);
|
||||||
graph->hndl = NULL;
|
graph->hndl = NULL;
|
||||||
free(graph->control_port);
|
|
||||||
graph->control_port = NULL;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
static int setup_graph(struct graph *graph)
|
static int setup_graph(struct graph *graph)
|
||||||
|
|
@ -2127,6 +2125,8 @@ static void graph_free(struct graph *graph)
|
||||||
for (i = 0; i < graph->n_output_names; i++)
|
for (i = 0; i < graph->n_output_names; i++)
|
||||||
free(graph->output_names[i]);
|
free(graph->output_names[i]);
|
||||||
free(graph->output_names);
|
free(graph->output_names);
|
||||||
|
free(graph->control_port);
|
||||||
|
graph->control_port = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct spa_filter_graph_methods impl_filter_graph = {
|
static const struct spa_filter_graph_methods impl_filter_graph = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue