summaryrefslogtreecommitdiff
path: root/ext/wayland
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 /ext/wayland
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 'ext/wayland')
-rw-r--r--ext/wayland/wlshmallocator.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/wayland/wlshmallocator.c b/ext/wayland/wlshmallocator.c
index e1b691b0e..dd334e341 100644
--- a/ext/wayland/wlshmallocator.c
+++ b/ext/wayland/wlshmallocator.c
@@ -110,8 +110,11 @@ gst_wl_shm_allocator_init (GstWlShmAllocator * self)
void
gst_wl_shm_allocator_register (void)
{
- gst_allocator_register (GST_ALLOCATOR_WL_SHM,
- g_object_new (GST_TYPE_WL_SHM_ALLOCATOR, NULL));
+ GstAllocator *alloc;
+
+ alloc = g_object_new (GST_TYPE_WL_SHM_ALLOCATOR, NULL);
+ gst_object_ref_sink (alloc);
+ gst_allocator_register (GST_ALLOCATOR_WL_SHM, alloc);
}
GstAllocator *