Commit 294e386e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Serialize vlc_object_set_destructor() against vlc_object_release()

(cherry picked from commit 6fa0eee4)
parent c08d3a64
...@@ -279,7 +279,10 @@ void __vlc_object_set_destructor( vlc_object_t *p_this, ...@@ -279,7 +279,10 @@ void __vlc_object_set_destructor( vlc_object_t *p_this,
vlc_destructor_t pf_destructor ) vlc_destructor_t pf_destructor )
{ {
vlc_object_internals_t *p_priv = vlc_internals(p_this ); vlc_object_internals_t *p_priv = vlc_internals(p_this );
vlc_spin_lock( &p_priv->ref_spin );
p_priv->pf_destructor = pf_destructor; 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