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

libvlc: Fix a typo in vlc_gc_object vlc_release(). We need to desstroy when...

libvlc: Fix a typo in vlc_gc_object vlc_release(). We need to desstroy when the refcount reaches zero.

(Why do we use uint? We can't track over-releasing?)
(Or we need to init it at 2).
parent 16903a1b
......@@ -185,8 +185,8 @@ void vlc_release (gc_object_t *p_gc)
vlc_spin_unlock (&p_gc->spin);
#endif
assert (refs > 0);
if (refs == 1)
/* assert(refs >= 0); */
if (refs == 0)
{
vlc_spin_destroy (&p_gc->spin);
p_gc->pf_destructor (p_gc);
......
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