summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsangwan.kwon <sangwan.kwon@samsung.com>2018-06-25 14:13:37 +0900
committersangwan.kwon <sangwan.kwon@samsung.com>2018-06-25 14:22:26 +0900
commit74db73178ddd27c9d805f23930200ec5616cdd61 (patch)
tree83cdf4d318714096a0c9d59edd08c4e1f3e65470
parent8b07467d483639769f8e8cf878ae740cf06c6cb1 (diff)
parent2997cfe5973ab89020897f64a5c376bc1298639e (diff)
downloadcsr-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
Change-Id: I6a3974092f1006b4645118f5ab2fe0d877659a06 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
-rw-r--r--src/framework/ui/popup/main.cpp8
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 {