display-channel: Clean more stuff on finalize

Release surfaces, cache and monitor configurations.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Frediano Ziglio 2017-02-28 11:11:48 +00:00
parent e4d06191ee
commit 67b1513f87

View File

@ -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);