mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
memory: only check the locking refcount
This commit is contained in:
parent
703683f51b
commit
4a0dd59808
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ static void
|
||||||
_gst_memory_free (GstMemory * mem)
|
_gst_memory_free (GstMemory * mem)
|
||||||
{
|
{
|
||||||
/* there should be no outstanding mappings */
|
/* there should be no outstanding mappings */
|
||||||
g_return_if_fail (g_atomic_int_get (&mem->state) < 4);
|
g_return_if_fail ((g_atomic_int_get (&mem->state) & LOCK_MASK) < 4);
|
||||||
mem->allocator->info.mem_free (mem);
|
mem->allocator->info.mem_free (mem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue