[vlc-devel] commit: missing vlc_mutex_destroy in case of failure. ( Rémi Duraffort )

git version control git at videolan.org
Wed Apr 1 22:33:05 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Apr  1 22:28:19 2009 +0200| [cd97914e9ec08b0269ff15436a17dfb33e011ca5] | committer: Rémi Duraffort 

missing vlc_mutex_destroy in case of failure.

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

 src/control/media_player.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index c73809a..1e0c3c7 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -287,6 +287,7 @@ libvlc_media_player_new( libvlc_instance_t * p_libvlc_instance,
             p_libvlc_instance, p_e );
     if( libvlc_exception_raised( p_e ) )
     {
+        vlc_mutex_destroy( &p_mi->object_lock );
         free( p_mi );
         return NULL;
     }




More information about the vlc-devel mailing list