mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pulse: don't leak device_name
Small cleanups
This commit is contained in:
parent
1f298cb5bf
commit
4e17d4cdf8
2 changed files with 13 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue