From df6cae660efdd762466d93366e080f0efaa58325 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Fri, 5 Jun 2009 19:43:43 -0700 Subject: [PATCH] libvlc: ref_count should only be accessed in the lock. --- src/control/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/control/core.c b/src/control/core.c index a083f5b583..ececd0ea0c 100644 --- a/src/control/core.c +++ b/src/control/core.c @@ -165,9 +165,8 @@ void libvlc_release( libvlc_instance_t *p_instance ) vlc_mutex_t *lock = &p_instance->instance_lock; int refs; - assert( p_instance->ref_count > 0 ); - vlc_mutex_lock( lock ); + assert( p_instance->ref_count > 0 ); refs = --p_instance->ref_count; vlc_mutex_unlock( lock ); -- 2.39.2