mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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:
parent
4091e86ab6
commit
be37f45998
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue