mirror of https://github.com/mpv-player/mpv
ao_pipewire: destroy context on connection failure
This commit is contained in:
parent
f8b7170871
commit
dadcb2e614
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue