[Spice-devel] [PATCH spice-server v2] display-channel: Clean more stuff on finalize

Frediano Ziglio fziglio at redhat.com
Tue Feb 28 17:03:17 UTC 2017


Release surfaces, cache and monitor configurations.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/display-channel.c | 3 +++
 1 file changed, 3 insertions(+)

Changes from v1:
- remove some cosmetic changes to reduce the patch.

diff --git a/server/display-channel.c b/server/display-channel.c
index 288969c..2e359f8 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -78,6 +78,9 @@ display_channel_finalize(GObject *object)
 {
     DisplayChannel *self = DISPLAY_CHANNEL(object);
 
+    display_channel_destroy_surfaces(self);
+    image_cache_reset(&self->priv->image_cache);
+    monitors_config_unref(self->priv->monitors_config);
     g_array_unref(self->priv->video_codecs);
     g_free(self->priv);
 
-- 
2.9.3



More information about the Spice-devel mailing list