diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2016-10-18 11:59:25 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2016-10-24 11:54:22 -0400 |
commit | 3fc8a334b79816b281f48cdb50bff8dd1e22fa94 (patch) | |
tree | eab8894e443185dcecf31fee7d900dcb2151e548 /gst | |
parent | ec4c76f297e03f78731278c4bd8e3c56364f8e82 (diff) |
allocator: Mark registered allocator for leak
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gstallocator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstallocator.c b/gst/gstallocator.c index df983d922e..367fc2a93f 100644 --- a/gst/gstallocator.c +++ b/gst/gstallocator.c @@ -210,6 +210,8 @@ gst_allocator_register (const gchar * name, GstAllocator * allocator) allocator, name); g_rw_lock_writer_lock (&lock); + /* The ref will never be released */ + GST_OBJECT_FLAG_SET (allocator, GST_OBJECT_FLAG_MAY_BE_LEAKED); g_hash_table_insert (allocators, (gpointer) name, (gpointer) allocator); g_rw_lock_writer_unlock (&lock); } |