mirror of
https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
synced 2025-06-03 06:30:16 +00:00
Close file socket on module unload
This commit is contained in:
parent
2d4cb1ea96
commit
127a7e27ae
@ -578,6 +578,12 @@ void pa__done(pa_module*m) {
|
|||||||
pa_rtpoll_free(u->rtpoll);
|
pa_rtpoll_free(u->rtpoll);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (u->fd >= 0)
|
||||||
|
{
|
||||||
|
close(u->fd);
|
||||||
|
u->fd = -1;
|
||||||
|
}
|
||||||
|
|
||||||
pa_xfree(u->sink_socket);
|
pa_xfree(u->sink_socket);
|
||||||
pa_xfree(u);
|
pa_xfree(u);
|
||||||
}
|
}
|
||||||
|
@ -526,6 +526,12 @@ void pa__done(pa_module*m) {
|
|||||||
if (u->rtpoll)
|
if (u->rtpoll)
|
||||||
pa_rtpoll_free(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->source_socket);
|
||||||
pa_xfree(u);
|
pa_xfree(u);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user