alsa: clean up the impl on errors

This commit is contained in:
Wim Taymans 2026-05-06 13:59:43 +02:00
parent 517b6c3778
commit 7254b8288f

View file

@ -1971,7 +1971,7 @@ impl_init(const struct spa_handle_factory *factory, struct spa_handle *handle,
if (spa_streq(k, SPA_KEY_API_ALSA_PATH)) {
snprintf(this->props.device, sizeof(this->props.device), "%s", s);
if ((res = parse_device(this)) < 0)
return res;
goto error;
}
}