[Spice-devel] [PATCH spice-server] display-channel: Clean more stuff on finalize
Frediano Ziglio
fziglio at redhat.com
Tue Feb 28 15:42:17 UTC 2017
Release surfaces, cache and monitor configurations.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/display-channel.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 288969c..60947fc 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -77,9 +77,14 @@ static void
display_channel_finalize(GObject *object)
{
DisplayChannel *self = DISPLAY_CHANNEL(object);
+ DisplayChannelPrivate *priv = self->priv;
- g_array_unref(self->priv->video_codecs);
- g_free(self->priv);
+ display_channel_destroy_surfaces(self);
+ image_cache_reset(&priv->image_cache);
+ g_array_unref(priv->video_codecs);
+
+ monitors_config_unref(priv->monitors_config);
+ g_free(priv);
G_OBJECT_CLASS(display_channel_parent_class)->finalize(object);
}
--
2.9.3
More information about the Spice-devel
mailing list