mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
ao_pipewire: destroy context on connection failure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user