Commit dd57c0a8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout_IsMuted: fix object leak

parent 731544cd
...@@ -257,7 +257,11 @@ bool aout_IsMuted( vlc_object_t * p_object ) ...@@ -257,7 +257,11 @@ bool aout_IsMuted( vlc_object_t * p_object )
FIND_ANYWHERE ); FIND_ANYWHERE );
if ( p_aout ) aout_lock_volume( p_aout ); if ( p_aout ) aout_lock_volume( p_aout );
b_return_val = var_GetBool( p_object->p_libvlc, "volume-muted"); b_return_val = var_GetBool( p_object->p_libvlc, "volume-muted");
if ( p_aout ) aout_unlock_volume( p_aout ); if ( p_aout )
{
aout_unlock_volume( p_aout );
vlc_object_release( p_aout );
}
return b_return_val; return b_return_val;
} }
......
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