ao_pipewire: destroy context on connection failure

This commit is contained in:
Thomas Weißschuh authored and sfan5 committed 2022-12-12 21:36:04 +01:00
1 parent 64a7fd3a12
commit f2ba5fdfd3
1 file changed
+1
+1
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;
}