fix some leaks

This commit is contained in:
Wim Taymans 2018-09-24 09:33:09 +02:00
parent 132ee30930
commit 30316df5c8
3 changed files with 14 additions and 5 deletions

View file

@ -119,11 +119,13 @@ static struct monitor_item *add_item(struct pw_spa_monitor *this,
&props->dict,
support,
n_support)) < 0) {
pw_properties_free(props);
pw_log_error("can't make factory instance: %d", res);
return NULL;
}
if ((res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_Node, &node_iface)) < 0) {
pw_log_error("can't get NODE interface: %d", res);
pw_properties_free(props);
return NULL;
}