]> git.sesse.net Git - vlc/blobdiff - src/libvlc.c
Fix memleak in wall video filter.
[vlc] / src / libvlc.c
index 22d1183918bb2f47ffebb467dc10ce5a8ad03af2..17482f6973d3152dcfa79e200f5f5ef3f25eb284 100644 (file)
@@ -1232,8 +1232,8 @@ static inline int LoadMessages (void)
     static const char psz_path[] = LOCALEDIR;
 #else
     char psz_path[1024];
-    if (snprintf (psz_path, sizeof (psz_path), "%s/%s",
-                  vlc_global()->psz_vlcpath, "locale")
+    if (snprintf (psz_path, sizeof (psz_path), "%s" DIR_SEP "%s",
+                  config_GetDataDir(), "locale")
                      >= (int)sizeof (psz_path))
         return -1;