[Spice-devel] [PATCH v5 3/8] Free QXL instances in spice_server_destroy
Frediano Ziglio
fziglio at redhat.com
Mon Dec 5 12:16:01 UTC 2016
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/reds.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/reds.c b/server/reds.c
index 17e5ada..95295c8 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3592,6 +3592,8 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds)
servers = g_list_remove(servers, reds);
pthread_mutex_unlock(&global_reds_lock);
+ g_list_free_full(reds->qxl_instances, (GDestroyNotify)red_qxl_destroy);
+
if (reds->inputs_channel) {
reds_unregister_channel(reds, RED_CHANNEL(reds->inputs_channel));
red_channel_destroy(RED_CHANNEL(reds->inputs_channel));
--
git-series 0.9.1
More information about the Spice-devel
mailing list