Commit 80cd0245 authored by Alexis Ballier's avatar Alexis Ballier Committed by Rémi Denis-Courmont

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

This was actually fixed by [697457bc] but then [952a943a] came which made it useless.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 7c39ad95)
parent effd9d10
...@@ -195,7 +195,7 @@ void vlc_release (gc_object_t *p_gc) ...@@ -195,7 +195,7 @@ void vlc_release (gc_object_t *p_gc)
assert (refs != (uintptr_t)(-1)); /* reference underflow?! */ assert (refs != (uintptr_t)(-1)); /* reference underflow?! */
if (refs == 0) if (refs == 0)
{ {
#ifdef USE_SYNC #if defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
#elif defined (WIN32) && defined (__GNUC__) #elif defined (WIN32) && defined (__GNUC__)
#elif defined(__APPLE__) #elif defined(__APPLE__)
#else #else
......
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