ao_pipewire: destroy context on connection failure

This commit is contained in:
Thomas Weißschuh authored and sfan5 committed 2023-01-24 15:56:56 +01:00
1 parent f8b7170871
commit dadcb2e614
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;
}