[Spice-devel] [PATCH v5 1/8] Call parent finalize at the and of display_channel_finalize

Jonathon Jongsma jjongsma at redhat.com
Mon Dec 5 20:54:28 UTC 2016


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


On Mon, 2016-12-05 at 12:15 +0000, Frediano Ziglio wrote:
> Make finalization of DisplayChannel consistent with other code.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/display-channel.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/display-channel.c b/server/display-channel.c
> index 061a99d..bd9d2be 100644
> --- a/server/display-channel.c
> +++ b/server/display-channel.c
> @@ -75,10 +75,10 @@ display_channel_finalize(GObject *object)
>  {
>      DisplayChannel *self = DISPLAY_CHANNEL(object);
>  
> -    G_OBJECT_CLASS(display_channel_parent_class)->finalize(object);
> -
>      g_array_unref(self->priv->video_codecs);
>      g_free(self->priv);
> +
> +    G_OBJECT_CLASS(display_channel_parent_class)->finalize(object);
>  }
>  
>  static void drawable_draw(DisplayChannel *display, Drawable
> *drawable);


More information about the Spice-devel mailing list