vkdisplay: unref the instance
fixes memory leak
This commit is contained in:
parent
7118f1f7e2
commit
57bd62f85f
@ -159,6 +159,10 @@ gst_vulkan_display_finalize (GObject * object)
|
|||||||
display->priv->event_thread = NULL;
|
display->priv->event_thread = NULL;
|
||||||
g_mutex_unlock (&display->priv->thread_lock);
|
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);
|
G_OBJECT_CLASS (gst_vulkan_display_parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user