diff options
-rw-r--r-- | core/qthelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 3321a3387..7e3b58b11 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -483,6 +483,7 @@ void initUiLanguage() uiLang = languages[2]; } + free((void*)prefs.locale.lang_locale); prefs.locale.lang_locale = copy_qstring(uiLang); if (!prefs.date_format_override || empty_string(prefs.date_format_short) || empty_string(prefs.date_format)) { |