ao_pipewire: destroy context on connection failure

This commit is contained in:
Thomas Weißschuh 2022-12-08 01:14:15 +00:00 committed by sfan5
parent f8b7170871
commit dadcb2e614
1 changed files with 1 additions and 0 deletions

View File

@ -470,6 +470,7 @@ static int pipewire_init_boilerplate(struct ao *ao)
if (!p->core) {
MP_WARN(ao, "Could not connect to context '%s': %s\n",
p->options.remote, strerror(errno));
pw_context_destroy(context);
goto error;
}