Commit 6fa0eee4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Serialize vlc_object_set_destructor() against vlc_object_release()

parent 43cde503
......@@ -245,7 +245,10 @@ void __vlc_object_set_destructor( vlc_object_t *p_this,
vlc_destructor_t pf_destructor )
{
vlc_object_internals_t *p_priv = vlc_internals(p_this );
vlc_spin_lock( &p_priv->ref_spin );
p_priv->pf_destructor = pf_destructor;
vlc_spin_unlock( &p_priv->ref_spin );
}
/**
......
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