mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vkdisplay: unref the instance
fixes memory leak
This commit is contained in:
parent
7118f1f7e2
commit
57bd62f85f
1 changed files with 4 additions and 0 deletions
|
@ -159,6 +159,10 @@ gst_vulkan_display_finalize (GObject * object)
|
|||
display->priv->event_thread = NULL;
|
||||
g_mutex_unlock (&display->priv->thread_lock);
|
||||
|
||||
if (display->instance) {
|
||||
gst_object_unref (display->instance);
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (gst_vulkan_display_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue