small cleanups

This commit is contained in:
Wim Taymans 2017-03-24 16:14:17 +01:00
parent 141202b1fd
commit 94019fb1f5
3 changed files with 30 additions and 10 deletions

View file

@ -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: