DlpPrivacyInfoData::DlpPrivacyInfoData() : m_connection(NULL), m_locmgr(NULL), m_myprofile_watch(false)
{
- wifi_manager_initialize(&m_wifi_manager);
+ int ret = wifi_manager_initialize(&m_wifi_manager);
+ if (ret < 0)
+ PG_LOGE("wifi_manager_initialize() failed. Error=%d", ret);
m_last_latitude = 0;
m_last_longitude = 0;
DlpPrivacyInfoData::localeChanged(keynode_t *key, void *user_data)
{
DlpPrivacyInfoData *pid = (DlpPrivacyInfoData *) user_data;
- const char *locale;
+ char *locale;
char buffer[18];
// Setting program's locale based on system settings
locale = vconf_get_str(VCONFKEY_LANGSET);
- if (locale)
+ if (locale) {
setlocale(LC_ALL, locale);
+ free(locale);
+ locale = NULL;
+ }
if (pid->m_owner_ibirthday == 0)
return;
{
pthread_t locmgr_thread;
int ret;
- const char *locale;
+ char *locale;
// Setting program's locale based on system settings
locale = vconf_get_str(VCONFKEY_LANGSET);
- if (locale)
+ if (locale) {
setlocale(LC_ALL, locale);
+ free(locale);
+ locale = NULL;
+ }
vconf_notify_key_changed(VCONFKEY_LANGSET, localeChanged, this);