Commit d98ba2fe authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

objects.c: Add an assert_locked() in vlc_object_yield_locked().

parent 56a09450
......@@ -911,6 +911,8 @@ void * __vlc_object_find_name( vlc_object_t *p_this, const char *psz_name,
/* When the structure_lock is locked */
static void vlc_object_yield_locked( vlc_object_t *p_this )
{
vlc_assert_locked (&structure_lock);
/* Avoid obvious freed object uses */
assert( p_this->p_internals->i_refcount > 0 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment