vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Feb 28 18:02:27 2013 +0200| [9f9b954327686a266e7379da30e05b64df47d05b] | committer: Rémi Denis-Courmont
aout: fix improbable memory leak > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f9b954327686a266e7379da30e05b64df47d05b --- 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 30f3396..60c0d3b 100644 --- a/src/audio_output/output.c +++ b/src/audio_output/output.c @@ -599,6 +599,8 @@ int aout_DeviceSet (audio_output_t *aout, const char *id) } vlc_mutex_lock (&owner->req.lock); + if (owner->req.device != unset_str) + free (owner->req.device); owner->req.device = dev; vlc_mutex_unlock (&owner->req.lock); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
