mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-10 10:44:54 +00:00
Free inputs_channel in spice_server_destroy
Avoid leaking this channel. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
e4a17a4875
commit
8dbfd4971a
@ -3592,6 +3592,10 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds)
|
||||
servers = g_list_remove(servers, reds);
|
||||
pthread_mutex_unlock(&global_reds_lock);
|
||||
|
||||
if (reds->inputs_channel) {
|
||||
reds_unregister_channel(reds, RED_CHANNEL(reds->inputs_channel));
|
||||
red_channel_destroy(RED_CHANNEL(reds->inputs_channel));
|
||||
}
|
||||
if (reds->main_channel) {
|
||||
red_channel_destroy(RED_CHANNEL(reds->main_channel));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user