[Spice-devel] [PATCH v4 1/7] Call parent finalize at the and of display_channel_finalize
Frediano Ziglio
fziglio at redhat.com
Fri Dec 2 17:43:43 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 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);
--
git-series 0.9.1
More information about the Spice-devel
mailing list