[vlc-commits] vsxu: fix mutex leaks
Rémi Denis-Courmont
git at videolan.org
Tue Oct 14 19:46:40 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 13 19:27:46 2014 +0300| [602ef2d0a04724c1777c25f05ff95e5df8a27ce1] | committer: Rémi Denis-Courmont
vsxu: fix mutex leaks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=602ef2d0a04724c1777c25f05ff95e5df8a27ce1
---
modules/visualization/vsxu.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/visualization/vsxu.cpp b/modules/visualization/vsxu.cpp
index ca1cd3d..0d0117b 100644
--- a/modules/visualization/vsxu.cpp
+++ b/modules/visualization/vsxu.cpp
@@ -149,8 +149,10 @@ static int Open( vlc_object_t * p_this )
return VLC_SUCCESS;
error:
+ vlc_mutex_destroy( &p_sys->cyclic_block_mutex );
+ vlc_mutex_destroy( &p_sys->lock );
vlc_sem_destroy( &p_sys->ready );
- free (p_sys );
+ free( p_sys );
return VLC_EGENERIC;
}
@@ -171,6 +173,7 @@ static void Close( vlc_object_t *p_this )
/* Free the ressources */
vlc_sem_destroy( &p_sys->ready );
+ vlc_mutex_destroy( &p_sys->cyclic_block_mutex );
vlc_mutex_destroy( &p_sys->lock );
delete p_sys->vsxu_cyclic_buffer;
free( p_sys );
More information about the vlc-commits
mailing list