Commit 48c1a9f2 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* forwardport [18346]: LocaleFree() a utf8_readdir entry instead of using free()

parent 45d22a77
...@@ -1497,7 +1497,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -1497,7 +1497,7 @@ static int Open( vlc_object_t * p_this )
if (p_src_dir != NULL) if (p_src_dir != NULL)
{ {
char *psz_file; const char *psz_file;
while ((psz_file = utf8_readdir(p_src_dir)) != NULL) while ((psz_file = utf8_readdir(p_src_dir)) != NULL)
{ {
if (strlen(psz_file) > 4) if (strlen(psz_file) > 4)
...@@ -1547,7 +1547,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -1547,7 +1547,7 @@ static int Open( vlc_object_t * p_this )
} }
} }
} }
free (psz_file); LocaleFree (psz_file);
} }
closedir( p_src_dir ); closedir( p_src_dir );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment