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 64a7fd3a12
commit f2ba5fdfd3

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;
}