[Spice-devel,v4,1/7] Call parent finalize at the and of display_channel_finalize

Submitted by Frediano Ziglio on Dec. 2, 2016, 5:43 p.m.

Details

Message ID 4e9093c4be8923c334edf98c62cb1a2145b845b5.1480700546.git-series.fziglio@redhat.com
State Accepted
Commit e4a17a487509eceeec908ef15a33f84f04cf12a6
Headers show
Series "Start cleaning objects on destruction" ( rev: 6 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Dec. 2, 2016, 5:43 p.m.
Make finalization of DisplayChannel consistent with other code.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/display-channel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/server/display-channel.c b/server/display-channel.c
index 52f0a3d..cd1334d 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -77,10 +77,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);