pulse: don't leak device_name

Small cleanups
This commit is contained in:
Wim Taymans 2020-08-19 16:47:52 +02:00
parent 1f298cb5bf
commit 4e17d4cdf8
2 changed files with 13 additions and 9 deletions

View file

@ -78,6 +78,7 @@ static void configure_device(pa_stream *s)
s->device_index = g->id;
}
free(s->device_name);
if ((str = pw_properties_get(g->props, PW_KEY_NODE_NAME)) == NULL)
s->device_name = strdup("unknown");
else