mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
allocator: Mark registered allocator for leak
This commit is contained in:
parent
ec4c76f297
commit
3fc8a334b7
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue