mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
don't unref pa_native_options object twice
This commit is contained in:
parent
5cc2187bec
commit
e65c514542
1 changed files with 6 additions and 7 deletions
|
|
@ -48,7 +48,8 @@ static const char* const valid_modargs[] = {
|
|||
int pa__init(pa_module*m) {
|
||||
pa_iochannel *io;
|
||||
pa_modargs *ma;
|
||||
int fd, r = -1;
|
||||
int32_t fd;
|
||||
int r = -1;
|
||||
pa_native_options *options = NULL;
|
||||
|
||||
pa_assert(m);
|
||||
|
|
@ -63,18 +64,16 @@ int pa__init(pa_module*m) {
|
|||
goto finish;
|
||||
}
|
||||
|
||||
m->userdata = pa_native_protocol_get(m->core);
|
||||
|
||||
io = pa_iochannel_new(m->core->mainloop, fd, fd);
|
||||
|
||||
options = pa_native_options_new();
|
||||
options->module = m;
|
||||
options->auth_anonymous = TRUE;
|
||||
|
||||
io = pa_iochannel_new(m->core->mainloop, fd, fd);
|
||||
|
||||
m->userdata = pa_native_protocol_get(m->core);
|
||||
|
||||
pa_native_protocol_connect(m->userdata, io, options);
|
||||
|
||||
pa_native_options_unref(options);
|
||||
|
||||
r = 0;
|
||||
|
||||
finish:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue