Commit 697457bc authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

Make sure vlc_release doesn't destroy a non existent spinlock.

parent ff1e54f1
......@@ -188,7 +188,11 @@ void vlc_release (gc_object_t *p_gc)
assert (refs > 0);
if (refs == 1)
{
#ifdef USE_SYNC
#elif defined(__APPLE__)
#else
vlc_spin_destroy (&p_gc->spin);
#endif
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