[vlc-commits] alsa: fix invalid free
Rémi Denis-Courmont
git at videolan.org
Tue Oct 27 20:31:41 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 27 17:31:38 2015 +0200| [7b2088351a6074ee1f8574d606ff34e0e7d998fb] | committer: Rémi Denis-Courmont
alsa: fix invalid free
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7b2088351a6074ee1f8574d606ff34e0e7d998fb
---
modules/audio_output/alsa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index 42c1d75..2d1f99e 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -742,7 +742,7 @@ static int EnumDevices(vlc_object_t *obj, char const *varname,
ids = xrealloc (ids, (n + 1) * sizeof (*ids));
names = xrealloc (names, (n + 1) * sizeof (*names));
ids[n] = xstrdup ("default");
- names[n] = _("Default");
+ names[n] = xstrdup (_("Default"));
n++;
}
More information about the vlc-commits
mailing list