videopool: Free members before chaining up finalize

The finalize function in GObject frees the object memory, so
everything else needs to have been freed before.

https://bugzilla.gnome.org/show_bug.cgi?id=748563
This commit is contained in:
Olivier Crete 2015-04-27 20:50:19 -04:00 committed by Víctor Manuel Jáquez Leal
parent 4091e86ab6
commit be37f45998

View file

@ -64,10 +64,10 @@ gst_vaapi_video_buffer_pool_finalize (GObject * object)
GstVaapiVideoBufferPoolPrivate *const priv =
GST_VAAPI_VIDEO_BUFFER_POOL (object)->priv;
G_OBJECT_CLASS (gst_vaapi_video_buffer_pool_parent_class)->finalize (object);
gst_vaapi_display_replace (&priv->display, NULL);
g_clear_object (&priv->allocator);
G_OBJECT_CLASS (gst_vaapi_video_buffer_pool_parent_class)->finalize (object);
}
static void