From a1b2eff0bcc9469fdd7587d9977a66e235a7f6e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 25 Jan 2010 18:31:26 +0200 Subject: [PATCH] taglib writer: use decode_URI_duplicate The code looks suspicious though. --- modules/meta_engine/taglib.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp index 59eda89fc3..1d230f3720 100644 --- a/modules/meta_engine/taglib.cpp +++ b/modules/meta_engine/taglib.cpp @@ -539,12 +539,9 @@ static int WriteMeta( vlc_object_t *p_this ) return VLC_EGENERIC; } - char *export_file = strdup(p_export->psz_file); - if( decode_URI( export_file ) == NULL ) - { - free( export_file ); + char *export_file = decode_URI_duplicate(p_export->psz_file); + if( export_file == NULL ) return VLC_EGENERIC; - } #if defined(WIN32) || defined (UNDER_CE) wchar_t wpath[MAX_PATH + 1]; -- 2.39.5