[vlc-commits] aout: fix mutex leak
Rémi Denis-Courmont
git at videolan.org
Thu Feb 28 17:31:35 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 28 18:31:28 2013 +0200| [665998149a64fc01d1fe960d6578b47684f1585c] | committer: Rémi Denis-Courmont
aout: fix mutex leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=665998149a64fc01d1fe960d6578b47684f1585c
---
src/audio_output/output.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index 60c0d3b..2f92c11 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -277,6 +277,8 @@ static void aout_Destructor (vlc_object_t *obj)
audio_output_t *aout = (audio_output_t *)obj;
aout_owner_t *owner = aout_owner (aout);
+ assert (owner->req.device == unset_str);
+ vlc_mutex_destroy (&owner->req.lock);
vlc_mutex_destroy (&owner->lock);
}
More information about the vlc-commits
mailing list