if (0 == g_is_vt_automode) {
VC_ELM_LOG_DBG("vt_automode is FALSE");
return _vc_elm_set_auto_register_mode(mode, click_method);
- } else {
- VC_ELM_LOG_DBG("vt_automode is TRUE");
- return _vc_elm_set_auto_register_mode((int)VC_ELM_MODE_AUTO_APPFW, click_method);
}
- return _vc_elm_set_auto_register_mode(mode, click_method);
+ VC_ELM_LOG_DBG("vt_automode is TRUE");
+ return _vc_elm_set_auto_register_mode((int)VC_ELM_MODE_AUTO_APPFW, click_method);
}
int vc_elm_get_auto_register_mode(int* mode, int* click_method)
vc_cmd_get_format(vc_command, &type);
vc_cmd_get_command(vc_command, &cmd);
VC_ELM_LOG_DBG("cmd: %s %d", cmd, type);
+
+ if (NULL != cmd) {
+ free(cmd);
+ }
return 1;
}