From 09a3bd7a213438d337e3bdaccba0837f8859411f Mon Sep 17 00:00:00 2001 From: Yong Yeon Kim Date: Mon, 14 Nov 2016 09:49:57 +0900 Subject: [PATCH] fix memory leak Change-Id: I828ab14b754aac3d878b6e966b71cd9fec831024 --- packaging/media-server.spec | 2 +- src/common/media-common-external-storage.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packaging/media-server.spec b/packaging/media-server.spec index 985ac8a..258f9b7 100755 --- a/packaging/media-server.spec +++ b/packaging/media-server.spec @@ -1,6 +1,6 @@ Name: media-server Summary: A server for media content management -Version: 0.3.12 +Version: 0.3.13 Release: 0 Group: Multimedia/Service License: Apache-2.0 diff --git a/src/common/media-common-external-storage.c b/src/common/media-common-external-storage.c index 40fe8a3..964499a 100755 --- a/src/common/media-common-external-storage.c +++ b/src/common/media-common-external-storage.c @@ -97,8 +97,9 @@ void update_lang(void) setenv("LC_MESSAGES", lang, 1); r = setlocale(LC_ALL, ""); if (r == NULL) { - r = setlocale(LC_ALL, vconf_get_str(VCONFKEY_LANGSET)); - MS_DBG_ERR("*****appcore setlocale=%s", r); + r = setlocale(LC_ALL, lang); + if (r != NULL) + MS_DBG_ERR("*****appcore setlocale=%s", r); } free(lang); } -- 2.7.4