diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-05-15 20:31:31 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-05-17 10:40:23 +0300 |
commit | 634cd87c76f58b5e1383715bafd5614db825c7d1 (patch) | |
tree | 56ed020dce25df5d80c2f5b3530138d2d202820d /gst-libs/gst/gl/gstglmemorypbo.c | |
parent | c40b8a894dc2fd542a6987c07992ca3e5fbb5658 (diff) | |
download | gstreamer-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.c | 1 |
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); |