projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7118f1f
)
vkdisplay: unref the instance
author
Matthew Waters
<matthew@centricular.com>
Wed, 10 Feb 2016 08:50:27 +0000
(19:50 +1100)
committer
Matthew Waters
<matthew@centricular.com>
Tue, 16 Feb 2016 14:13:43 +0000
(
01:13
+1100)
fixes memory leak
ext/vulkan/vkdisplay.c
patch
|
blob
|
history
diff --git
a/ext/vulkan/vkdisplay.c
b/ext/vulkan/vkdisplay.c
index
af36a40
..
09b5055
100644
(file)
--- a/
ext/vulkan/vkdisplay.c
+++ b/
ext/vulkan/vkdisplay.c
@@
-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);
}