vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sun Feb 11 10:22:19 2018 +0200| [80202385c3c1d16707bb535536e5d7863f9b551b] | committer: Rémi Denis-Courmont
textdomain: avoid useless duplication > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80202385c3c1d16707bb535536e5d7863f9b551b --- src/modules/textdomain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/textdomain.c b/src/modules/textdomain.c index 6dddee82e7..e6e54d7afd 100644 --- a/src/modules/textdomain.c +++ b/src/modules/textdomain.c @@ -44,15 +44,15 @@ int vlc_bindtextdomain (const char *domain) if (unlikely(ret == -1)) return -1; - char *lpath = ToLocaleDup (upath); + char *lpath = ToLocale(upath); if (lpath == NULL || bindtextdomain (domain, lpath) == NULL) { - free (lpath); + LocaleFree(lpath); fprintf (stderr, "%s: text domain not found in %s\n", domain, upath); free (upath); return -1; } - free (lpath); + LocaleFree(lpath); free (upath); /* LibVLC wants all messages in UTF-8. _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
