Browse Source

Close file socket on module unload

pull/59/head
matt335672 3 years ago
parent
commit
127a7e27ae
2 changed files with 12 additions and 0 deletions
  1. +6
    -0
      src/module-xrdp-sink.c
  2. +6
    -0
      src/module-xrdp-source.c

+ 6
- 0
src/module-xrdp-sink.c View File

@ -578,6 +578,12 @@ void pa__done(pa_module*m) {
pa_rtpoll_free(u->rtpoll);
}
if (u->fd >= 0)
{
close(u->fd);
u->fd = -1;
}
pa_xfree(u->sink_socket);
pa_xfree(u);
}

+ 6
- 0
src/module-xrdp-source.c View File

@ -526,6 +526,12 @@ void pa__done(pa_module*m) {
if (u->rtpoll)
pa_rtpoll_free(u->rtpoll);
if (u->fd >= 0)
{
close(u->fd);
u->fd = -1;
}
pa_xfree(u->source_socket);
pa_xfree(u);
}


Loading…
Cancel
Save