Avoid use after free

self->priv was deleted and then used

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-11-18 09:31:17 +00:00
parent 39b6b65421
commit 36bf206df8

View File

@ -79,8 +79,8 @@ display_channel_finalize(GObject *object)
G_OBJECT_CLASS(display_channel_parent_class)->finalize(object);
g_free(self->priv);
g_array_unref(self->priv->video_codecs);
g_free(self->priv);
}
static void drawable_draw(DisplayChannel *display, Drawable *drawable);