mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-06 06:46:29 -04:00
modules: handle allocation error of properties
This commit is contained in:
parent
f8a76d9f00
commit
9124a09482
1 changed files with 4 additions and 1 deletions
|
|
@ -1544,7 +1544,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
aec_props = pw_properties_new_string(str);
|
||||
else
|
||||
aec_props = pw_properties_new(NULL, NULL);
|
||||
|
||||
if (aec_props == NULL)
|
||||
goto error_errno;
|
||||
|
||||
if (spa_interface_callback_check(&impl->aec->iface, struct spa_audio_aec_methods, init2, 3)) {
|
||||
impl->rec_info = impl->capture_info;
|
||||
|
|
@ -1657,6 +1658,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
|
||||
return 0;
|
||||
|
||||
error_errno:
|
||||
res = -errno;
|
||||
error:
|
||||
pw_properties_free(props);
|
||||
impl_destroy(impl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue