mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
pulse-server: don't leak formats
This commit is contained in:
parent
a6c35d1df4
commit
99fcc95d18
3 changed files with 17 additions and 1 deletions
|
|
@ -327,6 +327,13 @@ struct format_info {
|
|||
struct pw_properties *props;
|
||||
};
|
||||
|
||||
static void format_info_clear(struct format_info *info)
|
||||
{
|
||||
if (info->props)
|
||||
pw_properties_free(info->props);
|
||||
spa_zero(*info);
|
||||
}
|
||||
|
||||
static int format_parse_param(const struct spa_pod *param, struct sample_spec *ss, struct channel_map *map)
|
||||
{
|
||||
struct spa_audio_info info = { 0 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue