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

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

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

This reverts commit a42998e5.

My bad.
parent 494e6f9a
......@@ -185,8 +185,8 @@ void vlc_release (gc_object_t *p_gc)
vlc_spin_unlock (&p_gc->spin);
#endif
/* assert(refs >= 0); */
if (refs == 0)
assert (refs > 0);
if (refs == 1)
{
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