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

Frediano Ziglio fziglio at redhat.com
Mon Dec 5 12:15:59 UTC 2016


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);
-- 
git-series 0.9.1


More information about the Spice-devel mailing list