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

Jonathon Jongsma jjongsma at redhat.com
Tue Feb 28 21:28:05 UTC 2017


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

On Tue, 2017-02-28 at 17:03 +0000, Frediano Ziglio wrote:
> 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);
>  


More information about the Spice-devel mailing list