[vlc-devel] commit: aout_IsMuted: fix object leak ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 31 12:19:54 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 31 13:18:58 2010 +0200| [dd57c0a89e36346e67462a9d9a47c93d154d6e73] | committer: Rémi Denis-Courmont 

aout_IsMuted: fix object leak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd57c0a89e36346e67462a9d9a47c93d154d6e73
---

 src/audio_output/intf.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c
index b924904..22431f8 100644
--- a/src/audio_output/intf.c
+++ b/src/audio_output/intf.c
@@ -257,7 +257,11 @@ bool aout_IsMuted( vlc_object_t * p_object )
                                                 FIND_ANYWHERE );
     if ( p_aout ) aout_lock_volume( p_aout );
     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;
 }
 




More information about the vlc-devel mailing list