mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
fix protocol destruction
This commit is contained in:
parent
7c5a95950e
commit
3c88af711e
1 changed files with 3 additions and 4 deletions
|
|
@ -260,7 +260,7 @@ int pa__init(pa_module*m) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
u = pa_xnew0(struct userdata, 1);
|
||||
m->userdata = u = pa_xnew0(struct userdata, 1);
|
||||
u->module = m;
|
||||
|
||||
#if defined(USE_PROTOCOL_SIMPLE)
|
||||
|
|
@ -368,8 +368,6 @@ int pa__init(pa_module*m) {
|
|||
# endif
|
||||
#endif
|
||||
|
||||
m->userdata = u;
|
||||
|
||||
if (ma)
|
||||
pa_modargs_free(ma);
|
||||
|
||||
|
|
@ -390,7 +388,8 @@ void pa__done(pa_module*m) {
|
|||
|
||||
pa_assert(m);
|
||||
|
||||
u = m->userdata;
|
||||
if (!(u = m->userdata))
|
||||
return;
|
||||
|
||||
#if defined(USE_PROTOCOL_SIMPLE)
|
||||
if (u->simple_protocol) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue