diff options
author | sangwan.kwon <sangwan.kwon@samsung.com> | 2018-06-25 14:13:37 +0900 |
---|---|---|
committer | sangwan.kwon <sangwan.kwon@samsung.com> | 2018-06-25 14:22:26 +0900 |
commit | 74db73178ddd27c9d805f23930200ec5616cdd61 (patch) | |
tree | 83cdf4d318714096a0c9d59edd08c4e1f3e65470 | |
parent | 8b07467d483639769f8e8cf878ae740cf06c6cb1 (diff) | |
parent | 2997cfe5973ab89020897f64a5c376bc1298639e (diff) | |
download | csr-framework-accepted/tizen_4.0_unified.tar.gz csr-framework-accepted/tizen_4.0_unified.tar.bz2 csr-framework-accepted/tizen_4.0_unified.zip |
Merge branch 'tizen' into tizen_4.0submit/tizen_4.0/20180626.021131accepted/tizen/4.0/unified/20180627.151203tizen_4.0accepted/tizen_4.0_unified
Change-Id: I6a3974092f1006b4645118f5ab2fe0d877659a06
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
-rw-r--r-- | src/framework/ui/popup/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/framework/ui/popup/main.cpp b/src/framework/ui/popup/main.cpp index b5104c9..23207cb 100644 --- a/src/framework/ui/popup/main.cpp +++ b/src/framework/ui/popup/main.cpp @@ -36,15 +36,17 @@ namespace { void updateLanguage(void) { - std::unique_ptr<char[]> lang(::vconf_get_str(VCONFKEY_LANGSET)); + char *lang = vconf_get_str(VCONFKEY_LANGSET); if (lang == nullptr) { WARN("Cannot get language_set."); return; } - ::setenv("LANG", lang.get(), 1); - ::setenv("LC_MESSAGES", lang.get(), 1); + ::setenv("LANG", lang, 1); + ::setenv("LC_MESSAGES", lang, 1); ::setlocale(LC_ALL, ""); + + ::free(lang); } struct ElmRaii { |