summaryrefslogtreecommitdiff
path: root/gst-libs/gst/gl/gstglmemorypbo.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-05-15 20:31:31 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-05-17 10:40:23 +0300
commit634cd87c76f58b5e1383715bafd5614db825c7d1 (patch)
tree56ed020dce25df5d80c2f5b3530138d2d202820d /gst-libs/gst/gl/gstglmemorypbo.c
parentc40b8a894dc2fd542a6987c07992ca3e5fbb5658 (diff)
downloadgstreamer-plugins-bad-634cd87c76f58b5e1383715bafd5614db825c7d1.tar.gz
gst: Clear floating flag in constructor of all GstObject subclasses that are not owned by any parent
https://bugzilla.gnome.org/show_bug.cgi?id=743062
Diffstat (limited to 'gst-libs/gst/gl/gstglmemorypbo.c')
-rw-r--r--gst-libs/gst/gl/gstglmemorypbo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglmemorypbo.c b/gst-libs/gst/gl/gstglmemorypbo.c
index 4ae7125a3..a7cf042f2 100644
--- a/gst-libs/gst/gl/gstglmemorypbo.c
+++ b/gst-libs/gst/gl/gstglmemorypbo.c
@@ -835,6 +835,7 @@ gst_gl_memory_pbo_init_once (void)
GST_DEBUG_CATEGORY_INIT (GST_CAT_GL_MEMORY, "glmemory", 0, "OpenGL Memory");
_gl_allocator = g_object_new (GST_TYPE_GL_MEMORY_PBO_ALLOCATOR, NULL);
+ gst_object_ref_sink (_gl_allocator);
/* The allocator is never unreffed */
GST_OBJECT_FLAG_SET (_gl_allocator, GST_OBJECT_FLAG_MAY_BE_LEAKED);