avoid some leaks and NULL pointer derefs

This commit is contained in:
Wim Taymans 2020-06-08 11:15:53 +02:00
parent 2fd64f1591
commit dac60d4e5b
3 changed files with 8 additions and 1 deletions

View file

@ -189,6 +189,9 @@ setup_props(struct pw_context *context, struct spa_node *spa_node, struct pw_pro
if ((prop = spa_pod_find_prop(props, prop, type))) {
const char *value = pw_properties_get(pw_props, key);
if (value == NULL)
continue;
pw_log_debug("configure prop %s to %s", key, value);
switch(prop->value.type) {