mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
alsa: don't hit an assert when invalid module arguments are passed
This commit is contained in:
parent
5a2898db8a
commit
4129f51194
2 changed files with 4 additions and 2 deletions
|
|
@ -1770,7 +1770,8 @@ pa_sink *pa_alsa_sink_new(pa_module *m, pa_modargs *ma, const char*driver, pa_ca
|
|||
|
||||
fail:
|
||||
|
||||
userdata_free(u);
|
||||
if (u)
|
||||
userdata_free(u);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1621,7 +1621,8 @@ pa_source *pa_alsa_source_new(pa_module *m, pa_modargs *ma, const char*driver, p
|
|||
|
||||
fail:
|
||||
|
||||
userdata_free(u);
|
||||
if (u)
|
||||
userdata_free(u);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue