mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
small cleanups
This commit is contained in:
parent
141202b1fd
commit
94019fb1f5
3 changed files with 30 additions and 10 deletions
|
|
@ -372,6 +372,7 @@ node_bind_func (PinosGlobal *global,
|
|||
PinosNode *this = global->object;
|
||||
PinosResource *resource;
|
||||
PinosNodeInfo info;
|
||||
int i;
|
||||
|
||||
resource = pinos_resource_new (client,
|
||||
id,
|
||||
|
|
@ -428,6 +429,18 @@ node_bind_func (PinosGlobal *global,
|
|||
|
||||
pinos_node_notify_info (resource, &info);
|
||||
|
||||
if (info.input_formats) {
|
||||
for (i = 0; i < info.n_input_formats; i++)
|
||||
free (info.input_formats[i]);
|
||||
free (info.input_formats);
|
||||
}
|
||||
|
||||
if (info.output_formats) {
|
||||
for (i = 0; i < info.n_output_formats; i++)
|
||||
free (info.output_formats[i]);
|
||||
free (info.output_formats);
|
||||
}
|
||||
|
||||
return SPA_RESULT_OK;
|
||||
|
||||
no_mem:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue